Skip to content

Commit

Permalink
fix(lsp): remove BufEnter event on linting
Browse files Browse the repository at this point in the history
When in use, linting will also be triggered when viewing lsp signature help
(or lsp hover)
  • Loading branch information
rgruyters committed Oct 20, 2024
1 parent 4120893 commit f4db486
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/kickstart/plugins/lint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f4db486

Please sign in to comment.