about summary refs log tree commit diff
path: root/fnl/nvrc/packs/lint.fnl
blob: c84aa58d770b631ecce0ce33e802b61274fc49a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
(import-macros {: ag!
                : au!} :nvrc.macro.event)
(local nvim-lint (require :lint))

(table.insert nvim-lint.linters.codespell.args :--builtin=clear)
(tset nvim-lint :linters_by_ft {:nix [:nix]})

(ag! nvim-lint
     (au! [BufEnter BufWritePost InsertLeave] * (do
          (nvim-lint.try_lint)
          ; linters that will run on any filetype
          (nvim-lint.try_lint [:codespell]))))