1
0
Fork 0

Add more null-ls sources

This commit is contained in:
Daniel Kempkens 2021-12-19 00:25:21 +01:00
parent 41fdeb94aa
commit beb3ff7223
2 changed files with 10 additions and 2 deletions

View file

@ -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)

View file

@ -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; [