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 = {
|
||||
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 },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user