From: Andreas Louv Date: Mon, 3 Apr 2023 11:02:31 +0000 (+0200) Subject: Close all existing popups when ":LspHover" is used X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=40790f2424d87c520450084d4938e9bfb2c1a184;p=vim-lsp.git Close all existing popups when ":LspHover" is used This related to the introduction of ":LspDiagCurrent!", Introduced in "be2221b~..4c93f5d", as the automatic diagnostic popup will be above the hover popup. --- diff --git a/autoload/lsp/hover.vim b/autoload/lsp/hover.vim index d429ffa..61fd3e6 100644 --- a/autoload/lsp/hover.vim +++ b/autoload/lsp/hover.vim @@ -74,6 +74,7 @@ export def HoverReply(lspserver: dict, hoverResult: any): void exe $'setlocal ft={hoverKind}' :wincmd p else + popup_clear() var winid = hoverText->popup_atcursor({moved: 'word', maxwidth: 80, border: [0, 1, 0, 1],