Switch python linting back to pylsp

This commit is contained in:
Evie Litherland-Smith 2023-01-30 14:47:53 +00:00
parent 384b624230
commit feeecbe936

View file

@ -121,27 +121,24 @@ cmp.setup.cmdline(':', {
-- Setup lspconfig.
local capabilities = require('cmp_nvim_lsp').default_capabilities(vim.lsp.protocol.make_client_capabilities())
require('lspconfig')['pyright'].setup {
require('lspconfig')['pylsp'].setup {
on_attach = on_attach,
flags = lsp_flags,
capabilities = capabilities,
}
require('lspconfig')['efm'].setup {
init_options = { documentFormatting = true },
settings = {
languages = {
python = {
{ formatCommand = 'black --quiet -', formatStdin = true },
{ formatCommand = 'zimports -', formatStdin = true },
{ formatCommand = 'isort --quiet -', formatStdin = true },
pylsp = {
plugins = {
pycodestyle = {
maxLineLength = 88
},
mypy = {
live_mode = false,
dmypy = true,
report_progress = true,
},
},
},
},
filetypes = { 'python' },
on_attach = on_attach,
flags = lsp_flags,
capabilities = capabilities,
}
require('lspconfig')['fortls'].setup {