about summary refs log tree commit diff
path: root/fnl/nvrc/packs/lint.fnl
blob: 9f600b3ae930cc655b5a52b410b8892be70614f7 (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] * (do
          (nvim-lint.try_lint)
          ; linters that will run on any filetype
          (nvim-lint.try_lint [:codespell]))))