From: Song-Tianxiang <149415622+Song-Tianxiang@users.noreply.github.com> Date: Tue, 16 Jan 2024 05:59:47 +0000 (+0800) Subject: fix hover popup-filter, remove redundant code X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=2656e62de556901b75d31f5ff7b937c53006a8e1;p=vim-lsp.git fix hover popup-filter, remove redundant code The original few lines of code are redundant. Just return false and let vim handle the other keys. The redundant code disabled mouse scrolling, and the popup will be closed automatically after some seconds (I don't know why it is closed automatically) --- diff --git a/autoload/lsp/hover.vim b/autoload/lsp/hover.vim index 16f3835..1aaddf9 100644 --- a/autoload/lsp/hover.vim +++ b/autoload/lsp/hover.vim @@ -90,11 +90,6 @@ def HoverWinFilterKey(hoverWin: number, key: string): bool keyHandled = true endif - if !keyHandled - # For any other key, close the hover window - hoverWin->popup_close() - endif - return keyHandled enddef