about summary refs log tree commit diff
path: root/fnl/nvrc/packs
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/nvrc/packs')
-rw-r--r--fnl/nvrc/packs/lint.fnl11
1 files changed, 11 insertions, 0 deletions
diff --git a/fnl/nvrc/packs/lint.fnl b/fnl/nvrc/packs/lint.fnl
new file mode 100644
index 0000000..304b7d8
--- /dev/null
+++ b/fnl/nvrc/packs/lint.fnl
@@ -0,0 +1,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]))))