summaryrefslogtreecommitdiff
path: root/fnl/plugins/editor/nvim-lint.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2024-01-05 01:50:20 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2024-01-05 01:50:20 +0100
commit2a94573f54c69a9af7536586ab2c03eb88bda5e7 (patch)
tree48e430773d56baef8c751fb8a6b4d76303b61636 /fnl/plugins/editor/nvim-lint.fnl
parent16198ca3bcd0ddd61f8d18280769c6f226b2b7ce (diff)
Refactor
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]}