1
0
Fork 0

nvim: Configure fennel linter

This commit is contained in:
Daniel Kempkens 2022-04-21 18:56:06 +02:00
parent ef775d615c
commit 1dac376e82

View file

@ -1,6 +1,7 @@
(let [lint (require :lint)
augroup (vim.api.nvim_create_augroup :NifocLint {:clear true})
aucmd vim.api.nvim_create_autocmd]
;; Custom Linters
(set lint.linters.deadnix
{:cmd :deadnix
:stdin false
@ -19,6 +20,10 @@
:source :deadnix
:message result.message})
findings.results))))})
;; Linter Options
(let [fennel (require :lint.linters.fennel)]
(set fennel.globals [:vim]))
;; Configure Linters per FT
(set lint.linters_by_ft {:dockerfile [:hadolint]
:elixir [:credo]
:fennel [:fennel]