about summary refs log tree commit diff
path: root/fnl/nvrc/packs/lint.fnl
blob: a06255c2ae03e9c30626ce0c4d8a73323b407965 (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))

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

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