Switch python linting back to pylsp
This commit is contained in:
parent
384b624230
commit
feeecbe936
|
@ -121,27 +121,24 @@ cmp.setup.cmdline(':', {
|
||||||
-- Setup lspconfig.
|
-- Setup lspconfig.
|
||||||
local capabilities = require('cmp_nvim_lsp').default_capabilities(vim.lsp.protocol.make_client_capabilities())
|
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,
|
on_attach = on_attach,
|
||||||
flags = lsp_flags,
|
flags = lsp_flags,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
}
|
|
||||||
|
|
||||||
require('lspconfig')['efm'].setup {
|
|
||||||
init_options = { documentFormatting = true },
|
|
||||||
settings = {
|
settings = {
|
||||||
languages = {
|
pylsp = {
|
||||||
python = {
|
plugins = {
|
||||||
{ formatCommand = 'black --quiet -', formatStdin = true },
|
pycodestyle = {
|
||||||
{ formatCommand = 'zimports -', formatStdin = true },
|
maxLineLength = 88
|
||||||
{ formatCommand = 'isort --quiet -', formatStdin = true },
|
},
|
||||||
|
mypy = {
|
||||||
|
live_mode = false,
|
||||||
|
dmypy = true,
|
||||||
|
report_progress = true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
filetypes = { 'python' },
|
|
||||||
on_attach = on_attach,
|
|
||||||
flags = lsp_flags,
|
|
||||||
capabilities = capabilities,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
require('lspconfig')['fortls'].setup {
|
require('lspconfig')['fortls'].setup {
|
||||||
|
|
Loading…
Reference in a new issue