diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-04-24 21:33:53 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-04-24 21:33:53 +0200 |
| commit | b8394e6e469c542a73770c97f9de9e715f3be590 (patch) | |
| tree | 940449312c092db005e095621bc7cf52a15abcf6 /lua/plugins | |
| parent | 5e5061793e94ec9035fb94cfaf6c7733f2a6f765 (diff) | |
| download | dotfiles-b8394e6e469c542a73770c97f9de9e715f3be590.tar.gz dotfiles-b8394e6e469c542a73770c97f9de9e715f3be590.zip | |
Add shellcheck with options for null-ls
Diffstat (limited to 'lua/plugins')
| -rw-r--r-- | lua/plugins/lsp.lua | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 778ae94..cb56d61 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -242,7 +242,20 @@ null_ls.setup { extra_args = { "-i", "2", "-ci" }, }), builtins.diagnostics.dotenv_linter, - --builtins.diagnostics.shellcheck, + builtins.diagnostics.shellcheck.with({ + -- shell script diagnostics + diagnostic_config = { + -- see :help vim.diagnostic.config() + underline = true, + virtual_text = false, + signs = true, + update_in_insert = false, + severity_sort = true, + }, + diagnostics_format = "[#{c}] #{m} (#{s})", + -- this will run every time the source runs, + -- so you should prefer caching results if possible + }), builtins.formatting.shellharden, builtins.formatting.trim_whitespace.with { filetypes = { "tmux", "teal", "zsh" } }, builtins.formatting.clang_format, |
