Update lsp.lua
This commit is contained in:
parent
9ca65a5cf8
commit
dbb1ee7908
|
|
@ -225,7 +225,7 @@ return {
|
||||||
gopls = {},
|
gopls = {},
|
||||||
pyright = {},
|
pyright = {},
|
||||||
rust_analyzer = {},
|
rust_analyzer = {},
|
||||||
tsserver = {},
|
ts_ls = {},
|
||||||
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
|
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
|
||||||
-- Some languages (like typescript) have entire language plugins that can be useful:
|
-- Some languages (like typescript) have entire language plugins that can be useful:
|
||||||
-- https://github.com/pmizio/typescript-tools.nvim
|
-- https://github.com/pmizio/typescript-tools.nvim
|
||||||
|
|
@ -295,10 +295,20 @@ return {
|
||||||
null_ls.setup({
|
null_ls.setup({
|
||||||
sources = {
|
sources = {
|
||||||
-- Only diagnostics/linters here (NOT formatting)
|
-- Only diagnostics/linters here (NOT formatting)
|
||||||
|
-- Shell
|
||||||
null_ls.builtins.diagnostics.shellcheck,
|
null_ls.builtins.diagnostics.shellcheck,
|
||||||
null_ls.builtins.diagnostics.markdownlint,
|
-- Ansible
|
||||||
null_ls.builtins.diagnostics.yamllint,
|
|
||||||
null_ls.builtins.diagnostics.ansiblelint,
|
null_ls.builtins.diagnostics.ansiblelint,
|
||||||
|
-- YAML
|
||||||
|
null_ls.builtins.diagnostics.yamllint,
|
||||||
|
-- Terraform
|
||||||
|
null_ls.builtins.diagnostics.terraform_validate,
|
||||||
|
-- Python (ruff or pylint)
|
||||||
|
null_ls.builtins.diagnostics.ruff,
|
||||||
|
-- Go (staticcheck)
|
||||||
|
null_ls.builtins.diagnostics.staticcheck,
|
||||||
|
-- Markdown
|
||||||
|
null_ls.builtins.diagnostics.markdownlint,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue