refactor(nvim): replace pylsp with pyright

This commit is contained in:
Price Hiller 2023-09-28 13:14:52 -05:00
parent 930497bec3
commit 8ad30581a2
No known key found for this signature in database

View File

@ -331,35 +331,9 @@ return {
})
-- NOTE: PYTHON LSP
lspconfig.pylsp.setup({
filetypes = { "python" },
settings = {
formatCommand = { "black" },
pylsp = {
plugins = {
jedi_completion = {
include_params = true,
fuzzy = true,
eager = true,
},
jedi_signature_help = { enabled = true },
pyflakes = { enabled = true },
pycodestyle = {
enabled = true,
ignore = { "E501", "E231", "W503", "E731" },
maxLineLength = 120,
},
mypy = { enabled = true },
yapf = { enabled = true },
rope_completion = {
enabled = true,
eager = true,
},
},
},
},
lspconfig.pyright.setup({
capabilities = lsp_capabilities,
on_attach = on_attach,
on_attach = on_attach
})
lspconfig.yamlls.setup({