mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
update config for git-conflict.nvim (#401)
This commit is contained in:
parent
e08b17f335
commit
510a5501c5
12
lua/config/git-conflict.lua
Normal file
12
lua/config/git-conflict.lua
Normal file
@ -0,0 +1,12 @@
|
||||
require("git-conflict").setup {}
|
||||
|
||||
vim.api.nvim_create_autocmd("User", {
|
||||
pattern = "GitConflictResolved",
|
||||
callback = function()
|
||||
-- clear qf list
|
||||
vim.fn.setqflist({}, "r")
|
||||
|
||||
-- reopen it?
|
||||
vim.cmd([[GitConflictListQf]])
|
||||
end,
|
||||
})
|
||||
@ -321,7 +321,14 @@ local plugin_specs = {
|
||||
|
||||
-- Better git log display
|
||||
{ "rbong/vim-flog", cmd = { "Flog" } },
|
||||
{ "akinsho/git-conflict.nvim", version = "*", config = true },
|
||||
{
|
||||
"akinsho/git-conflict.nvim",
|
||||
version = "*",
|
||||
event = "VeryLazy",
|
||||
config = function()
|
||||
require("config.git-conflict")
|
||||
end,
|
||||
},
|
||||
{
|
||||
"ruifm/gitlinker.nvim",
|
||||
event = "User InGitRepo",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user