Switch python linting back to pylsp
This commit is contained in:
parent
384b624230
commit
feeecbe936
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue