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 }, }, }, },