aboutsummaryrefslogtreecommitdiff
path: root/lua/config/lsp.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/config/lsp.lua')
-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 },
},
},
},