about summary refs log tree commit diff
path: root/fnl/nvrc/packs/lint.fnl
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-06-02 16:20:40 +0900
committersefidel <contact@sefidel.net>2024-06-02 16:20:40 +0900
commit80ed1240ec6a6f26013c5484ef3661c8964beb51 (patch)
treed70215aebb3460224d5d936aabd21ea1db8c36d8 /fnl/nvrc/packs/lint.fnl
parent71cdf5f7b87b89227501946427ad75d243d65e49 (diff)
downloadnvimrc-80ed1240ec6a6f26013c5484ef3661c8964beb51.tar.gz
nvimrc-80ed1240ec6a6f26013c5484ef3661c8964beb51.zip
feat(packs): add nvim-lint
Diffstat (limited to 'fnl/nvrc/packs/lint.fnl')
-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]))))