mirror of
https://github.com/Baipyrus/nvim-config.git
synced 2024-12-25 12:51:45 +00:00
group conflict-marker.vim autocmds in one
This commit is contained in:
parent
5795aa73ef
commit
5febea0f8a
@ -32,15 +32,10 @@ return {
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Autocommand to disable diagnostics on buffer enter
|
-- Autocommand to disable diagnostics on buffer enter
|
||||||
vim.api.nvim_create_autocmd('BufRead', {
|
vim.api.nvim_create_autocmd({ 'BufRead', 'BufWritePre' }, {
|
||||||
group = vim.api.nvim_create_augroup('git-conflict-lsp-disable', { clear = true }),
|
group = vim.api.nvim_create_augroup('git-conflict-lsp-disable', { clear = true }),
|
||||||
callback = git_conflict_detection,
|
callback = git_conflict_detection,
|
||||||
})
|
})
|
||||||
-- Autocommand to disable diagnostics on save
|
|
||||||
vim.api.nvim_create_autocmd('BufWritePre', {
|
|
||||||
group = vim.api.nvim_create_augroup('git-conflict-lsp-disable', { clear = false }),
|
|
||||||
callback = git_conflict_detection,
|
|
||||||
})
|
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user