Add more null-ls sources
This commit is contained in:
parent
41fdeb94aa
commit
beb3ff7223
2 changed files with 10 additions and 2 deletions
|
@ -4,11 +4,17 @@ local diagnostic_utils = require('nifoc.utils.diagnostic')
|
||||||
|
|
||||||
null_ls.setup({
|
null_ls.setup({
|
||||||
sources = {
|
sources = {
|
||||||
builtins.diagnostics.credo,
|
|
||||||
builtins.formatting.fish_indent,
|
builtins.formatting.fish_indent,
|
||||||
|
builtins.formatting.shfmt.with({extra_args = { '-i', '2' }}),
|
||||||
|
|
||||||
|
builtins.diagnostics.ansiblelint,
|
||||||
|
builtins.diagnostics.credo,
|
||||||
builtins.diagnostics.hadolint,
|
builtins.diagnostics.hadolint,
|
||||||
builtins.diagnostics.shellcheck.with({extra_args = { '-f', 'gcc', '-x' }}),
|
builtins.diagnostics.shellcheck.with({extra_args = { '-f', 'gcc', '-x' }}),
|
||||||
builtins.formatting.shfmt.with({extra_args = { '-i', '2' }}),
|
builtins.diagnostics.statix,
|
||||||
|
|
||||||
|
builtins.code_actions.shellcheck,
|
||||||
|
builtins.code_actions.statix,
|
||||||
},
|
},
|
||||||
|
|
||||||
on_attach = function(client, bufnr)
|
on_attach = function(client, bufnr)
|
||||||
|
|
|
@ -31,9 +31,11 @@ in
|
||||||
taplo-lsp
|
taplo-lsp
|
||||||
|
|
||||||
# LSP Tools
|
# LSP Tools
|
||||||
|
ansible-lint
|
||||||
hadolint
|
hadolint
|
||||||
shellcheck
|
shellcheck
|
||||||
shfmt
|
shfmt
|
||||||
|
statix
|
||||||
];
|
];
|
||||||
|
|
||||||
plugins = with customPlugins; [
|
plugins = with customPlugins; [
|
||||||
|
|
Loading…
Reference in a new issue