summaryrefslogtreecommitdiff
path: root/fnl/plugins
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-09-22 23:55:52 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-09-22 23:55:52 +0200
commitdeec93dea6cce47348e61d80cd504d09441dc79e (patch)
tree3f07c24204c06374750972207d1fda1c55623650 /fnl/plugins
parent1c29ef55c803b4947219e0d0efb320fbd8416bdc (diff)
Update diffview keys
Diffstat (limited to 'fnl/plugins')
-rw-r--r--fnl/plugins/editor/diffview.fnl21
1 files changed, 18 insertions, 3 deletions
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 :<leader>gh 2 :<cmd>DiffviewFileHistory<cr> :desc :DiffviewFileHistory}
- {1 :<leader>go 2 "<cmd>DiffviewOpen -uno<cr>" :desc :DiffviewOpen}
- {1 :<leader>ga 2 :<cmd>DiffviewClose<cr> :desc :DiffviewClose}]}
+ :keys [{1 :<leader>is
+ 2 :<cmd>DiffviewFileHistory<cr>
+ :desc "Repository history"
+ :nowait true}
+ {1 :<leader>it
+ 2 "<cmd>DiffviewFileHistory --follow %<cr>"
+ :desc "File history"}
+ {1 :<leader>ir 2 :<cmd>DiffviewOpen<cr> :desc :Diffview}
+ {1 :<leader>ia
+ 2 "<cmd>DiffviewOpen master<cr>"
+ :desc "Diffview with master"}
+ {1 :<leader>if
+ 2 "<cmd>.DiffviewFileHistory --follow<cr>"
+ :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"}]}