Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

Commit a4bee98

Browse files
committed
fix(autocmds): small linting fix, less aggresive linting
1 parent d092b44 commit a4bee98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lua/doom/extras/autocmds/init.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ if config.doom.preserve_edit_pos then
122122
end
123123

124124
-- Linting
125-
if not is_plugin_disabled("linter") then
125+
if not is_plugin_disabled("linter") and packer_plugins and packer_plugins["nvim-lint"] then
126126
table.insert(autocmds["doom_extras"], {
127-
"BufWritePost,InsertLeave,TextChanged",
128-
"*",
127+
"BufWritePost",
128+
"<buffer>",
129129
"lua require('lint').try_lint()",
130130
})
131131
end

0 commit comments

Comments
 (0)