summaryrefslogtreecommitdiff
path: root/fnl/plugins/diffview.fnl
blob: 33fd7633f8d337f39fcec2b72958cfa1e657b1ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
;; Inspect commits.

(local keys
       [{1 :<leader>dh
         2 :<cmd>DiffviewFileHistory<cr>
         :desc "Repository history"
         :nowait true}
        {1 :<leader>df
         2 "<cmd>DiffviewFileHistory --follow %<cr>"
         :desc "File history"}
        {1 :<leader>do 2 :<cmd>DiffviewOpen<cr> :desc :Diffview}
        {1 :<leader>dm
         2 "<cmd>DiffviewOpen master<cr>"
         :desc "Diffview with master"}
        {1 :<leader>dl
         2 "<cmd>.DiffviewFileHistory --follow<cr>"
         :desc "Line history"}
        {1 :<leader>dv
         2 "<esc><cmd>'<,'>DiffviewFileHistory --follow<CR>"
         :desc "Range history"
         :mode :v}
        {1 :<leader>dc 2 :<cmd>DiffviewClose<cr> :desc "Close diffview"}])

{1 :sindrets/diffview.nvim
 :cmd [:DiffviewFileHistory :DiffviewOpen]
 :config true
 : keys}