mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
feat: update pylsp conf
1. support using black as formatter 2. replace obsolete pyls-isort with maintained ones
This commit is contained in:
parent
67a4b6e6d0
commit
4034b6b673
@ -104,12 +104,21 @@ if utils.executable("pylsp") then
|
|||||||
settings = {
|
settings = {
|
||||||
pylsp = {
|
pylsp = {
|
||||||
plugins = {
|
plugins = {
|
||||||
|
-- formatter options
|
||||||
|
black = { enabled = true },
|
||||||
|
autopep8 = { enabled = false },
|
||||||
|
yapf = { enabled = false },
|
||||||
|
-- linter options
|
||||||
pylint = { enabled = true, executable = "pylint" },
|
pylint = { enabled = true, executable = "pylint" },
|
||||||
|
ruff = { enabled = false },
|
||||||
pyflakes = { enabled = false },
|
pyflakes = { enabled = false },
|
||||||
pycodestyle = { enabled = false },
|
pycodestyle = { enabled = false },
|
||||||
|
-- type checker
|
||||||
|
pylsp_mypy = { enabled = true, report_progress = true, live_mode = false },
|
||||||
|
-- auto-completion options
|
||||||
jedi_completion = { fuzzy = true },
|
jedi_completion = { fuzzy = true },
|
||||||
pyls_isort = { enabled = true },
|
-- import sorting
|
||||||
pylsp_mypy = { enabled = true },
|
isort = { enabled = true },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user