-
I've configured pylint.mp4Is there a config to suppress or remove these notifications? My lsp config: if utils.executable("pylsp") then
local conda_prefix = os.getenv("CONDA_PREFIX")
local function isempty(s)
return s == nil or s == ""
end
local function use_if_defined(val, fallback)
return val ~= nil and val or fallback
end
if not isempty(conda_prefix) then
vim.g.python_host_prog = use_if_defined(vim.g.python_host_prog, conda_prefix .. "/bin/python")
vim.g.python3_host_prog = use_if_defined(vim.g.python3_host_prog, conda_prefix .. "/bin/python3")
else
vim.g.python_host_prog = use_if_defined(vim.g.python_host_prog, "python")
vim.g.python3_host_prog = use_if_defined(vim.g.python3_host_prog, "python3")
end
require("lspconfig").pylsp.setup {
on_attach = on_attach,
settings = {
pylsp = {
plugins = {
-- formatter options
black = { enabled = true },
autopep8 = { enabled = false },
yapf = { enabled = false },
-- linter options
pylint = {
enabled = true,
executable = "pylint",
report_progress=false,
},
ruff = {
enabled = false,
report_progress=false,
};
pyflakes = { enabled = false },
pycodestyle = { enabled = false },
-- type checker
pylsp_mypy = {
enabled = true,
overrides = { "--python-executable", vim.g.python3_host_prog, true },
report_progress = true,
live_mode = false
-- auto-completion options
},
jedi_completion = { fuzzy = true },
-- import sorting
isort = { enabled = true },
},
},
},
flags = {
debounce_text_changes = 200,
},
capabilities = capabilities,
}
else
vim.notify("pylsp not found!", vim.log.levels.WARN, { title = "Nvim-config" })
end |
Beta Was this translation helpful? Give feedback.
Answered by
luabida
Apr 29, 2024
Replies: 2 comments 1 reply
-
I am having the same problem with the ltex-ls, have you made any progress? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Confirming the workaround here for further reference:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
luabida
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Confirming the workaround here for further reference: