How to override lsp handlers correctly #1511
Unanswered
sidequestboy
asked this question in
Q&A
Replies: 1 comment
-
I'd consult the lspconfig documentation. That function is only called by mason-lspconfig when it detects a server is installed, it doesn't intercept or interfere any interactions with lspconfig, so for LSP client issues you'd wanna check lspconfig or |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use mason-lspconfig's automatic
setup_handlers
function to set up my LSP servers. That snippet looks like this:The problem I am having is with that overridden hover handler - I am trying to pass silent = true to avoid the "No Information Available" message when an LSP doesn't have hover info (see here), but with this override I instead get errors like the following when I call
vim.lsp.buf.hover
:Beta Was this translation helpful? Give feedback.
All reactions