Skip to content

Commit 410289f

Browse files
authored
Fix #667: LspDocumentSymbol doesn't properly ignore user mappings (#670)
Generating `CursorHold` event after popups were created fixes the issue with user mappings.
1 parent d1c6748 commit 410289f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

autoload/lsp/symbol.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -987,6 +987,7 @@ def SymbolPopupMenu(symbolTable: list<dict<any>>)
987987
endif
988988
var symInputPopup = popup_create('', symInputPopupAttrs)
989989
var symPopupMenu = popup_menu(symNames, symNamesPopupAttrs)
990+
feedkeys("\<CursorHold>", 'n') # fix issue with user mappings, see #667
990991

991992
# Save the state in the popup menu window variables
992993
setwinvar(symPopupMenu, 'symbolTable', symbolTable)

0 commit comments

Comments
 (0)