diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-01-05 01:50:20 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-01-05 01:50:20 +0100 |
commit | 2a94573f54c69a9af7536586ab2c03eb88bda5e7 (patch) | |
tree | 48e430773d56baef8c751fb8a6b4d76303b61636 /fnl/plugins/diffview.fnl | |
parent | 16198ca3bcd0ddd61f8d18280769c6f226b2b7ce (diff) |
Refactor
Diffstat (limited to 'fnl/plugins/diffview.fnl')
-rw-r--r-- | fnl/plugins/diffview.fnl | 27 |
1 files changed, 27 insertions, 0 deletions
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 :<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"}]) + +{1 :sindrets/diffview.nvim + :cmd [:DiffviewFileHistory :DiffviewOpen] + :config true + : keys} |