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

(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]))))