From 2656e62de556901b75d31f5ff7b937c53006a8e1 Mon Sep 17 00:00:00 2001 From: Song-Tianxiang <149415622+Song-Tianxiang@users.noreply.github.com> Date: Tue, 16 Jan 2024 13:59:47 +0800 Subject: [PATCH] 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) --- autoload/lsp/hover.vim | 5 ----- 1 file changed, 5 deletions(-) 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 -- 2.48.1