My neovim(0.6.1) use nvim-lint manage pylint, use pylsp for completion.
When edit a python file, use numpy, scipy etc, the code competion, hover, signature is slow, and cpu use 100%. The code have same lint notion twice. I want disable linter in pylsp, but it not work. How can i do?
This is my config: pylsp.lua
opts = {
cmd = { "pylsp" },
filetypes = { "python" },
root_dir = function()
return vim.fn.getcwd()
end,
single_file_support = true,
configurationSources = {""}, -- default is pycodestyle
rope = {extensionModules = "", ropeFolder = {} },
plugins = {
jedi_completion = {
enabled = true,
eager = true,
cache_for = {"numpy", "scipy"}
},
jedi_definition = {
enabled = true,
follow_imports = true,
follow_builtin_imports = true,
},
jedi_hover = { enabled = true },
jedi_references = { enabled = true },
jedi_signature_help = { enabled = true },
jedi_symbols = { enabled = true, all_scopes = true, include_import_symbols = true },
preload = { enabled = true, modules = {"numpy", "scipy"} },
mccabe = { enabled = false },
mypy = { enabled = false },
isort = { enabled = false },
spyder = { enabled = false },
memestra = { enabled = false },
pycodestyle = { enabled = false }, -- not work
flake8 = { enabled = false },
pyflakes = { enabled = false },
yapf = { enabled = false },
pylint = {
enabled = false,
args = {
"-f",
"json",
"--rcfile=" .. "~/.pylintrc"
}
},
rope = { enabled = false },
rope_completion = { enabled = false, eager = false },
},
}
pylsp.setup(opts)