1
0
Fork 0
dotfiles/config/nvim/plugins/null-ls.fnl

26 lines
1.4 KiB
Text
Raw Normal View History

2022-04-05 19:57:44 +00:00
(let [null-ls (require :null-ls)
builtins null-ls.builtins
diagnostic (require :nifoc.diagnostic)]
(null-ls.setup {:debounce 700
:sources [; Formatting
builtins.formatting.fish_indent
builtins.formatting.fnlfmt
builtins.formatting.mix
2022-04-05 19:57:44 +00:00
(builtins.formatting.shfmt.with {:extra_args [:-i
:2]})
; Diagnostics
builtins.diagnostics.credo
builtins.diagnostics.deadnix
builtins.diagnostics.fish
2022-04-05 19:57:44 +00:00
builtins.diagnostics.hadolint
(builtins.diagnostics.shellcheck.with {:extra_args [:-f
:gcc
:-x]})
builtins.diagnostics.statix
; Code Actions
builtins.code_actions.shellcheck
builtins.code_actions.statix]
:on_attach (lambda [client bufnr]
(diagnostic.maybe-enable-lsp client bufnr)
(diagnostic.maybe-enable-fixer client bufnr))}))