Merge branch 'master' into my-config

This commit is contained in:
Pascal Popp 2025-01-08 15:56:48 +01:00 committed by GitHub
commit 929f5f7223
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 203 additions and 82 deletions

View file

@ -48,7 +48,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,