From: Andreas Louv <andreas@louv.dk> Date: Mon, 3 Apr 2023 21:38:54 +0000 (+0200) Subject: End omni search when the language server replies with nothing X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=1c2e7d6d17f9af684c11e5ba4ee0722541a94bc7;p=vim-lsp.git End omni search when the language server replies with nothing --- diff --git a/autoload/lsp/completion.vim b/autoload/lsp/completion.vim index 5f2869c..138f2d3 100644 --- a/autoload/lsp/completion.vim +++ b/autoload/lsp/completion.vim @@ -75,6 +75,10 @@ enddef # Result: CompletionItem[] | CompletionList | null export def CompletionReply(lspserver: dict<any>, cItems: any) if cItems->empty() + if lspserver.omniCompletePending + lspserver.completeItems = [] + lspserver.omniCompletePending = false + endif return endif