summaryrefslogtreecommitdiff
path: root/fnl/plugins/editor/nvim-lint.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/plugins/editor/nvim-lint.fnl')
-rw-r--r--fnl/plugins/editor/nvim-lint.fnl30
1 files changed, 0 insertions, 30 deletions
diff --git a/fnl/plugins/editor/nvim-lint.fnl b/fnl/plugins/editor/nvim-lint.fnl
deleted file mode 100644
index 2ea01fa..0000000
--- a/fnl/plugins/editor/nvim-lint.fnl
+++ /dev/null
@@ -1,30 +0,0 @@
-;; Linting
-
-(lambda callback []
- (let [lint (require :lint)]
- (lint.try_lint)))
-
-(fn init []
- (let [lint-augroup (vim.api.nvim_create_augroup :lint {:clear true})]
- (vim.api.nvim_create_autocmd [:BufEnter
- :BufWritePost
- :InsertLeave
- :TextChangedI]
- {:group lint-augroup : callback})))
-
-(fn config []
- (let [lint (require :lint)]
- (set lint.linters_by_ft {:* [:codespell :write_good]
- :dockerfile [:hadolint]
- :fennel [:fennel]
- :gitcommit [:gitlint :codespell]
- :haskell [:hlint]
- :json [:jsonlint]
- :lua [:selene]
- :python [:ruff]
- :sh [:shellcheck]
- :sql [:sqlfluff]
- :yaml [:yamllint]
- :zsh [:zsh]})))
-
-{1 :mfussenegger/nvim-lint : init : config :event [:BufReadPost :BufNewFile]}