From 40790f2424d87c520450084d4938e9bfb2c1a184 Mon Sep 17 00:00:00 2001 From: Andreas Louv Date: Mon, 3 Apr 2023 13:02:31 +0200 Subject: [PATCH] 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. --- autoload/lsp/hover.vim | 1 + 1 file changed, 1 insertion(+) 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], -- 2.48.1