forked from ayamir/nvimdots
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: set default config for pylsp. (ayamir#770)
* feat: add default config for pylsp. Signed-off-by: ayamir <[email protected]> * clean old config of black in null-ls. * feat: install pylsp plugins automatically. * perf: remove isort for pylsp, add E501 and F401 to ignore. * perf: remove E501 and F401 from ignore list. --------- Signed-off-by: ayamir <[email protected]>
- Loading branch information
Showing
4 changed files
with
78 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
return { | ||
settings = { | ||
pylsp = { | ||
plugins = { | ||
-- enabled tools | ||
-- lint related | ||
ruff = { | ||
enabled = true, | ||
select = { | ||
-- enable pycodestyle | ||
"E", | ||
-- enable pyflakes | ||
"F", | ||
}, | ||
ignore = { | ||
-- ignore E501 (line too long) | ||
-- "E501", | ||
-- ignore F401 (imported but unused) | ||
-- "F401", | ||
}, | ||
extendSelect = { "I" }, | ||
}, | ||
-- refactor related | ||
rope = { enabled = true }, | ||
-- format related | ||
black = { enabled = true }, | ||
|
||
-- disabled tools | ||
-- lint related | ||
flake8 = { enabled = false }, | ||
pyflakes = { enabled = false }, | ||
pycodestyle = { enabled = false }, | ||
mccabe = { enabled = false }, | ||
-- format related | ||
pyls_isort = { enabled = false }, | ||
autopep8 = { enabled = false }, | ||
yapf = { enabled = false }, | ||
}, | ||
}, | ||
}, | ||
} |