Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to disablelint: pylint pylsp &lint: mccabe pylsp notifications?#430

Unanswered
luabida asked this question inQ&A
Discussion options

I've configuredpylsp in mylspconfig server in neovim. But everytime I type, delete or save a python file, it spams these both notifications:
image

Is there a config to suppress or remove these notifications?

My config:

ifutils.executable("pylsp")thenlocalconda_prefix=os.getenv("CONDA_PREFIX")localfunctionisempty(s)returns==nilors==""endlocalfunctionuse_if_defined(val,fallback)returnval~=nilandvalorfallbackendifnotisempty(conda_prefix)thenvim.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")elsevim.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")endrequire("lspconfig").pylsp.setup {on_attach=on_attach,settings= {pylsp= {plugins= {-- formatter optionsblack= {enabled=true },autopep8= {enabled=false },yapf= {enabled=false },-- linter optionspylint= {enabled=true,executable="pylint"},ruff= {enabled=false },pyflakes= {enabled=false },pycodestyle= {enabled=false },-- type checkerpylsp_mypy= {enabled=true,overrides= {"--python-executable",vim.g.python3_host_prog,true },report_progress=true,live_mode=false          },-- auto-completion optionsjedi_completion= {fuzzy=true },-- import sortingisort= {enabled=true },        },      },    },flags= {debounce_text_changes=200,    },capabilities=capabilities,  }elsevim.notify("pylsp not found!",vim.log.levels.WARN, {title="Nvim-config"})end
You must be logged in to vote

Replies: 1 comment

Comment options

I think you should mention this to the Neovim maintainers since this server doesn't emit such notifications. So, I guess they are somehow processed and shown by Neovim itself.

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@luabida@ccordoba12

[8]ページ先頭

©2009-2025 Movatter.jp