summaryrefslogtreecommitdiff
path: root/fnl/plugins/editor/diffview.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-09-24 01:12:42 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-09-24 01:12:42 +0200
commit8ad2f8c9afb308e7a8a1133f578e3352442f770a (patch)
treea7a05ed7c472f186d6380dd918e2318d6d951330 /fnl/plugins/editor/diffview.fnl
parentfd69ec549594d53b9503212d93a9a44f10eef478 (diff)
Restructure plugin configs
Diffstat (limited to 'fnl/plugins/editor/diffview.fnl')
-rw-r--r--fnl/plugins/editor/diffview.fnl16
1 files changed, 10 insertions, 6 deletions
diff --git a/fnl/plugins/editor/diffview.fnl b/fnl/plugins/editor/diffview.fnl
index 4468d96..f041ab6 100644
--- a/fnl/plugins/editor/diffview.fnl
+++ b/fnl/plugins/editor/diffview.fnl
@@ -1,9 +1,7 @@
;; Inspect commits.
-{1 :sindrets/diffview.nvim
- :cmd [:DiffviewFileHistory :DiffviewOpen]
- :config true
- :keys [{1 :<leader>is
+(local keys
+ [{1 :<leader>is
2 :<cmd>DiffviewFileHistory<cr>
:desc "Repository history"
:nowait true}
@@ -19,5 +17,11 @@
:desc "Line history"}
{1 :<leader>ip
2 "<esc><cmd>'<,'>DiffviewFileHistory --follow<CR>"
- :desc "Range history" :mode :v}
- {1 :<leader>ic 2 :<cmd>DiffviewClose<cr> :desc "Close diffview"}]}
+ :desc "Range history"
+ :mode :v}
+ {1 :<leader>ic 2 :<cmd>DiffviewClose<cr> :desc "Close diffview"}])
+
+{1 :sindrets/diffview.nvim
+ :cmd [:DiffviewFileHistory :DiffviewOpen]
+ :config true
+ : keys}