From deec93dea6cce47348e61d80cd504d09441dc79e Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Fri, 22 Sep 2023 23:55:52 +0200 Subject: Update diffview keys --- fnl/plugins/editor/diffview.fnl | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'fnl') diff --git a/fnl/plugins/editor/diffview.fnl b/fnl/plugins/editor/diffview.fnl index 9b49990..4468d96 100644 --- a/fnl/plugins/editor/diffview.fnl +++ b/fnl/plugins/editor/diffview.fnl @@ -3,6 +3,21 @@ {1 :sindrets/diffview.nvim :cmd [:DiffviewFileHistory :DiffviewOpen] :config true - :keys [{1 :gh 2 :DiffviewFileHistory :desc :DiffviewFileHistory} - {1 :go 2 "DiffviewOpen -uno" :desc :DiffviewOpen} - {1 :ga 2 :DiffviewClose :desc :DiffviewClose}]} + :keys [{1 :is + 2 :DiffviewFileHistory + :desc "Repository history" + :nowait true} + {1 :it + 2 "DiffviewFileHistory --follow %" + :desc "File history"} + {1 :ir 2 :DiffviewOpen :desc :Diffview} + {1 :ia + 2 "DiffviewOpen master" + :desc "Diffview with master"} + {1 :if + 2 ".DiffviewFileHistory --follow" + :desc "Line history"} + {1 :ip + 2 "'<,'>DiffviewFileHistory --follow" + :desc "Range history" :mode :v} + {1 :ic 2 :DiffviewClose :desc "Close diffview"}]} -- cgit v1.2.3-70-g09d2