nvim: Lint after FT change
This commit is contained in:
parent
04c23cf778
commit
06f281019a
1 changed files with 2 additions and 1 deletions
|
@ -31,7 +31,8 @@
|
|||
:sh [:shellcheck]})
|
||||
|
||||
(fn setup-linting [opts]
|
||||
(aucmd [:BufWritePost :BufEnter :InsertLeave]
|
||||
(lint.try_lint)
|
||||
(aucmd [:BufWritePost :InsertLeave]
|
||||
{:callback #(lint.try_lint) :buffer opts.buf :group augroup}))
|
||||
|
||||
(each [ft _ (pairs lint.linters_by_ft)]
|
||||
|
|
Loading…
Reference in a new issue