fix(lsp): remove BufEnter event on linting

When in use, linting will also be triggered when viewing lsp signature help
(or lsp hover)
This commit is contained in:
Robin Gruyters 2024-10-20 13:46:27 +02:00
parent 4120893b8a
commit f4db486f61
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ return {
-- Create autocommand which carries out the actual linting -- Create autocommand which carries out the actual linting
-- on the specified events. -- on the specified events.
local lint_augroup = vim.api.nvim_create_augroup('lint', { clear = true }) local lint_augroup = vim.api.nvim_create_augroup('lint', { clear = true })
vim.api.nvim_create_autocmd({ 'BufEnter', 'BufWritePost', 'InsertLeave' }, { vim.api.nvim_create_autocmd({ 'BufWritePost', 'InsertLeave' }, {
group = lint_augroup, group = lint_augroup,
callback = function() callback = function()
lint.try_lint() lint.try_lint()