From 2a94573f54c69a9af7536586ab2c03eb88bda5e7 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Fri, 5 Jan 2024 01:50:20 +0100 Subject: Refactor --- fnl/plugins/diffview.fnl | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 fnl/plugins/diffview.fnl (limited to 'fnl/plugins/diffview.fnl') diff --git a/fnl/plugins/diffview.fnl b/fnl/plugins/diffview.fnl new file mode 100644 index 0000000..f041ab6 --- /dev/null +++ b/fnl/plugins/diffview.fnl @@ -0,0 +1,27 @@ +;; Inspect commits. + +(local 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"}]) + +{1 :sindrets/diffview.nvim + :cmd [:DiffviewFileHistory :DiffviewOpen] + :config true + : keys} -- cgit v1.2.3-70-g09d2