1
0
Fork 0

nvim: Lint after FT change

This commit is contained in:
Daniel Kempkens 2022-04-24 13:46:54 +02:00
parent 04c23cf778
commit 06f281019a

View file

@ -31,7 +31,8 @@
:sh [:shellcheck]}) :sh [:shellcheck]})
(fn setup-linting [opts] (fn setup-linting [opts]
(aucmd [:BufWritePost :BufEnter :InsertLeave] (lint.try_lint)
(aucmd [:BufWritePost :InsertLeave]
{:callback #(lint.try_lint) :buffer opts.buf :group augroup})) {:callback #(lint.try_lint) :buffer opts.buf :group augroup}))
(each [ft _ (pairs lint.linters_by_ft)] (each [ft _ (pairs lint.linters_by_ft)]