From 8ad2f8c9afb308e7a8a1133f578e3352442f770a Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 24 Sep 2023 01:12:42 +0200 Subject: Restructure plugin configs --- fnl/plugins/editor/diffview.fnl | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'fnl/plugins/editor/diffview.fnl') 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 :is +(local keys + [{1 :is 2 :DiffviewFileHistory :desc "Repository history" :nowait true} @@ -19,5 +17,11 @@ :desc "Line history"} {1 :ip 2 "'<,'>DiffviewFileHistory --follow" - :desc "Range history" :mode :v} - {1 :ic 2 :DiffviewClose :desc "Close diffview"}]} + :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