Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Alexander 2024-12-09 22:38:45 +01:00
commit 7470b4d60b
3 changed files with 89 additions and 27 deletions

View file

@ -47,7 +47,12 @@ return {
vim.api.nvim_create_autocmd({ 'BufEnter', 'BufWritePost', 'InsertLeave' }, {
group = lint_augroup,
callback = function()
lint.try_lint()
-- Only run the linter in buffers that you can modify in order to
-- avoid superfluous noise, notably within the handy LSP pop-ups that
-- describe the hovered symbol using Markdown.
if vim.opt_local.modifiable:get() then
lint.try_lint()
end
end,
})
end,