Skip to content

Hovered Tooltip #3984

Answered by fannheyward
Froxcey asked this question in Q&A
Aug 2, 2022 · 2 comments · 3 replies
Discussion options

You must be logged in to vote
" Use K to show documentation in preview window.
nnoremap <silent> K :call ShowDocumentation()<CR>

function! ShowDocumentation()
  if CocAction('hasProvider', 'hover')
    call CocActionAsync('doHover')
  else
    call feedkeys('K', 'in')
  endif
endfunction

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@Froxcey
Comment options

Answer selected by chemzqm
Comment options

You must be logged in to vote
2 replies
@vitaly-zdanevich
Comment options

@chemzqm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants