diff options
| author | jdhao <jdhao@hotmail.com> | 2023-07-22 14:48:51 +0200 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2023-07-22 14:51:27 +0200 |
| commit | 4034b6b6731bcd9e575c2faea46b350c73965cd9 (patch) | |
| tree | ba55ed00cb951044cf05e1f3b077f3ce5adecc48 | |
| parent | 67a4b6e6d0b8000436f45e0bd1aacda46adf1164 (diff) | |
feat: update pylsp conf
1. support using black as formatter
2. replace obsolete pyls-isort with maintained ones
| -rw-r--r-- | lua/config/lsp.lua | 13 |
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 }, }, }, }, |
