summaryrefslogtreecommitdiff
path: root/lua/user/lsp
diff options
context:
space:
mode:
Diffstat (limited to 'lua/user/lsp')
-rw-r--r--lua/user/lsp/handlers.lua4
-rw-r--r--lua/user/lsp/null-ls.lua5
2 files changed, 8 insertions, 1 deletions
diff --git a/lua/user/lsp/handlers.lua b/lua/user/lsp/handlers.lua
index e668ad2..c9b6ac3 100644
--- a/lua/user/lsp/handlers.lua
+++ b/lua/user/lsp/handlers.lua
@@ -91,6 +91,10 @@ M.on_attach = function(client, bufnr)
client.resolved_capabilities.document_formatting = false
end
lsp_keymaps(bufnr)
+ if client.name == "stylelint_lsp" then
+ client.resolved_capabilities.document_formatting = false
+ end
+ lsp_keymaps(bufnr)
lsp_highlight_document(client)
end
diff --git a/lua/user/lsp/null-ls.lua b/lua/user/lsp/null-ls.lua
index 731644e..b8f9018 100644
--- a/lua/user/lsp/null-ls.lua
+++ b/lua/user/lsp/null-ls.lua
@@ -14,6 +14,9 @@ null_ls.setup{
formatting.prettier.with({ extra_args = { "--no-semi", "--single-quote", "--jsx-single-quote" } }),
formatting.black.with({ extra_args = { "--fast" } }),
formatting.stylua,
- diagnostics.flake8
+ formatting.shfmt,
+ diagnostics.flake8,
+ diagnostics.eslint,
+ diagnostics.shellcheck
},
}