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:
Sergio Laín 2023-09-10 01:08:24 +02:00
parent 0bf3eb84ba
commit df4855cadb
3 changed files with 5 additions and 2 deletions

View file

@ -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()

View file

@ -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)

View file

@ -23,6 +23,7 @@
[interactive]
diffFilter = diff-so-fancy --patch
[merge]
tool = nvim
conflictstyle = diff3
[pager]
blame = diff-so-fancy | less --tabs=4 -RFX