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) (let [lint (require :lint)
augroup (vim.api.nvim_create_augroup :NifocLint {:clear true}) augroup (vim.api.nvim_create_augroup :NifocLint {:clear true})
aucmd vim.api.nvim_create_autocmd] aucmd vim.api.nvim_create_autocmd]
;; Custom Linters
(set lint.linters.deadnix (set lint.linters.deadnix
{:cmd :deadnix {:cmd :deadnix
:stdin false :stdin false
@ -19,6 +20,10 @@
:source :deadnix :source :deadnix
:message result.message}) :message result.message})
findings.results))))}) 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] (set lint.linters_by_ft {:dockerfile [:hadolint]
:elixir [:credo] :elixir [:credo]
:fennel [:fennel] :fennel [:fennel]