Changes to the keybinds for the diffview plugin in nvim, as well as adding neovim as default merge tool for git
This commit is contained in:
parent
0bf3eb84ba
commit
df4855cadb
3 changed files with 5 additions and 2 deletions
|
@ -3,8 +3,9 @@ return {
|
|||
"sindrets/diffview.nvim",
|
||||
cmd = { "DiffviewOpen", "DiffviewFileHistory" },
|
||||
keys = {
|
||||
{ "<Leader>gd", "<cmd>DiffviewFileHistory<CR>", desc = "Diff File" },
|
||||
{ "<Leader>gv", "<cmd>DiffviewOpen<CR>", desc = "Diff View" },
|
||||
{ "<Leader>gdd", "<cmd>DiffviewFileHistory<CR>", desc = "Diff File History" },
|
||||
{ "<Leader>gdo", "<cmd>DiffviewOpen<CR>", desc = "Open Diff View" },
|
||||
{ "<Leader>gdc", "<cmd>DiffviewClose<CR>", desc = "Close Diff View" },
|
||||
},
|
||||
event = "BufRead",
|
||||
config = function()
|
||||
|
|
|
@ -24,6 +24,7 @@ return {
|
|||
["<leader>x"] = { name = "+diagnostics/quickfix" },
|
||||
["<leader>cc"] = { name = "+compile" },
|
||||
["<leader>cp"] = { name = "+packages" },
|
||||
["<leader>gd"] = { name = "+diff" },
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
[interactive]
|
||||
diffFilter = diff-so-fancy --patch
|
||||
[merge]
|
||||
tool = nvim
|
||||
conflictstyle = diff3
|
||||
[pager]
|
||||
blame = diff-so-fancy | less --tabs=4 -RFX
|
||||
|
|
Loading…
Add table
Reference in a new issue