aboutsummaryrefslogtreecommitdiff
path: root/lua/config
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2023-07-22 14:48:51 +0200
committerjdhao <jdhao@hotmail.com>2023-07-22 14:51:27 +0200
commit4034b6b6731bcd9e575c2faea46b350c73965cd9 (patch)
treeba55ed00cb951044cf05e1f3b077f3ce5adecc48 /lua/config
parent67a4b6e6d0b8000436f45e0bd1aacda46adf1164 (diff)
feat: update pylsp conf
1. support using black as formatter 2. replace obsolete pyls-isort with maintained ones
Diffstat (limited to 'lua/config')
-rw-r--r--lua/config/lsp.lua13
1 files changed, 11 insertions, 2 deletions
diff --git a/lua/config/lsp.lua b/lua/config/lsp.lua
index 4851921..be4fd33 100644
--- a/lua/config/lsp.lua
+++ b/lua/config/lsp.lua
@@ -104,12 +104,21 @@ if utils.executable("pylsp") then
settings = {
pylsp = {
plugins = {
+ -- formatter options
+ black = { enabled = true },
+ autopep8 = { enabled = false },
+ yapf = { enabled = false },
+ -- linter options
pylint = { enabled = true, executable = "pylint" },
+ ruff = { enabled = false },
pyflakes = { enabled = false },
pycodestyle = { enabled = false },
+ -- type checker
+ pylsp_mypy = { enabled = true, report_progress = true, live_mode = false },
+ -- auto-completion options
jedi_completion = { fuzzy = true },
- pyls_isort = { enabled = true },
- pylsp_mypy = { enabled = true },
+ -- import sorting
+ isort = { enabled = true },
},
},
},