]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Close all existing popups when ":LspHover" is used
authorAndreas Louv <andreas@louv.dk>
Mon, 3 Apr 2023 11:02:31 +0000 (13:02 +0200)
committerAndreas Louv <andreas@louv.dk>
Mon, 3 Apr 2023 12:37:31 +0000 (14:37 +0200)
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

index d429ffa0ec9313b19030dccdacb276b92610421a..61fd3e62540c8828382f65fe30d4cc458b42ecfb 100644 (file)
@@ -74,6 +74,7 @@ export def HoverReply(lspserver: dict<any>, 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],