-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to suppress warning messages. #96
Comments
Hello, I'm also interested, did you found a solution? |
I don't know for now ... |
If I'm understanding you right, you want to suppress virtual text. Try adding the following code. " LSP settings
" log file location: /Users/michael/.local/share/nvim/vim-lsp.log
:lua << EOF
-- Add nvim-lspconfig plugin
local on_attach = function(_, bufnr)
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
vim.lsp.diagnostic.on_publish_diagnostics, {
-- disable virtual text
virtual_text = false,
-- show signs
signs = true,
-- delay update diagnostics
update_in_insert = false,
}
)
EOF |
it is complete! Thank you! |
Maybe we should add this into the readme, it's a builtin feature now in neovim core, but a short nod to the docs might be handy |
How to disable warnings also in the sign column? |
how do I disable warnings on virtual text and sign columns with < leader >hw |
let g:lsp_document_code_action_signs_enabled=0 |
Problems summary
A warning message is displayed.
Expected
I want to suppress warning messages.
Environment Information
nvim-lsp version (SHA1): 7a15a52
deoplete-lsp version (SHA1): 7a8c44f423bc4339c092a759abaad40131d2c98a
deoplete version (SHA1): 5be25591770c5abc7214e8899c4d451c479ac2ec
OS: Mac
neovim/Vim
:version
output: NVIM v0.5.0-316-g8fe0635e7Plugins and settings
.config/nvim/lua/lsp.lua
How to reproduce the problem from neovim startup
$ cargo new issue-rust
$ cd issue-rust
$ nvim
:Scratch
:e src/main.rs
The text was updated successfully, but these errors were encountered: