From ec32429a670983c21e22de9907c0733e956561a2 Mon Sep 17 00:00:00 2001 From: Song-Tianxiang <149415622+Song-Tianxiang@users.noreply.github.com> Date: Wed, 17 Jan 2024 10:09:53 +0800 Subject: [PATCH] press to close popup window The default way uses to close the popup window, the escape key is added to also close the popup window. --- autoload/lsp/hover.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/autoload/lsp/hover.vim b/autoload/lsp/hover.vim index 1aaddf9..485fdd3 100644 --- a/autoload/lsp/hover.vim +++ b/autoload/lsp/hover.vim @@ -90,6 +90,11 @@ def HoverWinFilterKey(hoverWin: number, key: string): bool keyHandled = true endif + if key == "\" + hoverWin->popup_close() + keyHandled = true + endif + return keyHandled enddef -- 2.48.1