From f4db486f617dd38ed10bcfcae56df387e4155d61 Mon Sep 17 00:00:00 2001 From: Robin Gruyters <2082795+rgruyters@users.noreply.github.com> Date: Sun, 20 Oct 2024 13:46:27 +0200 Subject: [PATCH] fix(lsp): remove BufEnter event on linting When in use, linting will also be triggered when viewing lsp signature help (or lsp hover) --- lua/kickstart/plugins/lint.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/kickstart/plugins/lint.lua b/lua/kickstart/plugins/lint.lua index ca9bc237904..1087d4a497d 100644 --- a/lua/kickstart/plugins/lint.lua +++ b/lua/kickstart/plugins/lint.lua @@ -44,7 +44,7 @@ return { -- Create autocommand which carries out the actual linting -- on the specified events. 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, callback = function() lint.try_lint()