nvim: improve git integration (diffview, gitsigns)

This commit is contained in:
2023-07-08 15:20:43 +03:00
parent 55b0c9c4fc
commit fee1efaadd
4 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,14 @@
return {
"sindrets/diffview.nvim",
config = function()
vim.api.nvim_create_user_command("DiffviewToggle", function(e)
local view = require("diffview.lib").get_current_view()
if view then
vim.cmd("DiffviewClose")
else
vim.cmd("DiffviewOpen " .. e.args)
end
end, { nargs = "*" })
end,
}