# Nothing to show
if hoverText->empty()
if cmdmods !~ 'silent'
- util.WarnMsg($'No hover messages found for current position')
+ util.WarnMsg($'No documentation found for current keyword')
endif
return
endif
:wincmd p
else
popup_clear()
- var winid = hoverText->popup_atcursor({moved: 'word',
+ var winid = hoverText->popup_atcursor({moved: 'any',
+ close: 'click',
+ fixed: true,
maxwidth: 80,
+ minwidth: 80,
border: [0, 1, 0, 1],
borderchars: [' ']})
win_execute(winid, $'setlocal ft={hoverKind}')
LspOptionsSet({'hoverInPreview': true})
<
- Default is false.
+ You can use the |K| key in normal mode to display the
+ documentation for the keyword under the cursor by
+ setting the 'keywordprg' Vim option: >
+ :set keywordprg=:LspHover
+<
*:LspIncomingCalls*
:LspIncomingCalls Display a hierarchy of symbols calling the symbol
under the cursor in a window. See
command! -nargs=0 -bar -count LspGotoTypeDef lsp.GotoTypedef(v:false, <q-mods>, <count>)
command! -nargs=0 -bar LspHighlight call LspDocHighlight(<q-mods>)
command! -nargs=0 -bar LspHighlightClear call LspDocHighlightClear()
-command! -nargs=0 -bar LspHover lsp.Hover(<q-mods>)
+command! -nargs=? -bar LspHover lsp.Hover(<q-mods>)
command! -nargs=0 -bar LspIncomingCalls lsp.IncomingCalls()
command! -nargs=0 -bar LspOutgoingCalls lsp.OutgoingCalls()
command! -nargs=0 -bar -count LspOutline lsp.Outline(<q-mods>, <count>)