aboutsummaryrefslogtreecommitdiff
path: root/lua/config
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-07-15 23:33:02 +0800
committerjdhao <jdhao@hotmail.com>2021-07-15 23:33:02 +0800
commitffb0601aca630d33adc84606db54aca3a5484e72 (patch)
treee594a495985224da8fc5b53aa362fe62f2965f7c /lua/config
parent4689c4b22f4a4e560b325bbc9798597b2bbc182a (diff)
Use pylsp instead of pyls
It seems that pyls, the original python language server has lost its momentum, and pylsp is a community driven fork of pyls. So nvim-lspconfig has dropped support for pyls in https://github.com/neovim/nvim-lspconfig/pull/1074. See also https://github.com/palantir/python-language-server/issues/935 and https://github.com/python-lsp/python-lsp-server/issues/27.
Diffstat (limited to 'lua/config')
-rw-r--r--lua/config/lsp.lua13
1 files changed, 8 insertions, 5 deletions
diff --git a/lua/config/lsp.lua b/lua/config/lsp.lua
index a9b7c76..3271fd4 100644
--- a/lua/config/lsp.lua
+++ b/lua/config/lsp.lua
@@ -57,26 +57,29 @@ capabilities.textDocument.completion.completionItem.snippetSupport = true
local lspconfig = require("lspconfig")
-lspconfig.pyls.setup{
+lspconfig.pylsp.setup{
on_attach = on_attach,
settings = {
- pyls = {
+ pylsp = {
plugins = {
- flake8 = {enabled = false},
pylint = {enabled = true, executable = "pylint"},
pyflakes = {enabled = false},
pycodestyle = {enabled = false},
jedi_completion = {fuzzy = true},
pyls_isort = {enabled = true},
- pyls_mypy = {enabled = true}
+ pylsp_mypy = {enabled = true}
}
}
},
flags = {
- debounce_text_changes = 500,
+ debounce_text_changes = 200,
}
}
+-- lspconfig.pyright.setup{
+-- on_attach = on_attach,
+-- }
+
lspconfig.clangd.setup{
on_attach = on_attach,
capabilities = capabilities,