autoload/lsp/completion.vim | 4 ++++ diff --git a/autoload/lsp/completion.vim b/autoload/lsp/completion.vim index 5f2869c1778095acfb5a5446f863c72f1c92301f..138f2d3b49f0a0b20dfa3abdf672466f03a5675d 100644 --- a/autoload/lsp/completion.vim +++ b/autoload/lsp/completion.vim @@ -75,6 +75,10 @@ # process the 'textDocument/completion' reply from the LSP server # Result: CompletionItem[] | CompletionList | null export def CompletionReply(lspserver: dict, cItems: any) if cItems->empty() + if lspserver.omniCompletePending + lspserver.completeItems = [] + lspserver.omniCompletePending = false + endif return endif