Replies: 1 comment
-
|
Using this workaround now: function! s:SmartHover() abort
let result = execute('LspHover')
if result =~ 'Error'
call feedkeys('K', 'in')
endif
endfunction
nnoremap <silent> K :call <SID>SmartHover()<CR>
`` |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to overwrite K with
:LspHoverif the server has this capability and else use the default Vim functionality. How to query this?I found
call lsp#capabilitites#GetClientCaps()for the client side. Not sure how to uselsp#capabilities#ProcessServerCaps()to achieve this.Beta Was this translation helpful? Give feedback.
All reactions