diff options
| author | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-07-23 17:28:58 +0100 |
|---|---|---|
| committer | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-07-23 17:28:58 +0100 |
| commit | adb901bb02e1b205731156976b4ea6d765b24432 (patch) | |
| tree | 301060c005f5ff8f08730064dd45ac6d6651cb6e /lua/user/lsp | |
| parent | 3f37e96329ef099eb71e536aa8c3f988e2f1e472 (diff) | |
mainly lsp changes
Diffstat (limited to 'lua/user/lsp')
| -rw-r--r-- | lua/user/lsp/handlers.lua | 4 | ||||
| -rw-r--r-- | lua/user/lsp/null-ls.lua | 5 |
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 }, } |
