diff options
Diffstat (limited to 'fnl/plugins/editor/diffview.fnl')
-rw-r--r-- | fnl/plugins/editor/diffview.fnl | 16 |
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} |