mirror of
https://github.com/Baipyrus/nvim-config.git
synced 2024-11-14 13:03:49 +00:00
group conflict-marker.vim autocmds in one
This commit is contained in:
parent
5795aa73ef
commit
5febea0f8a
@ -32,15 +32,10 @@ return {
|
||||
end
|
||||
|
||||
-- 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 }),
|
||||
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,
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user