From f882bed2b5315d3defb2240b7d93194def869b32 Mon Sep 17 00:00:00 2001 From: "shane.xb.qian" Date: Sat, 6 Jan 2024 22:43:37 +0800 Subject: [PATCH] fix: omnicompl may no completeItems yet Signed-off-by: shane.xb.qian --- autoload/lsp/completion.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/autoload/lsp/completion.vim b/autoload/lsp/completion.vim index 4ea35777..d1faf0c3 100644 --- a/autoload/lsp/completion.vim +++ b/autoload/lsp/completion.vim @@ -475,7 +475,6 @@ def g:LspOmniFunc(findstart: number, base: string): any endif if findstart - var [triggerKind, triggerChar] = GetTriggerAttributes(lspserver) if triggerKind < 0 return -1 @@ -506,7 +505,7 @@ def g:LspOmniFunc(findstart: number, base: string): any count += 1 endwhile - if lspserver.omniCompletePending + if lspserver.omniCompletePending || !lspserver->has_key('completeItems') return v:none endif