nvim: Configure fennel linter
This commit is contained in:
parent
ef775d615c
commit
1dac376e82
1 changed files with 5 additions and 0 deletions
|
@ -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]
|
||||||
|
|
Loading…
Reference in a new issue