Skip to content

Commit

Permalink
Merge pull request #450 from girishji/main
Browse files Browse the repository at this point in the history
BUG: LspOmniFunc() throws E716
  • Loading branch information
yegappan authored Feb 6, 2024
2 parents fb18f22 + 6b440f1 commit 314a41a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions autoload/lsp/completion.vim
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ enddef
# process the 'textDocument/completion' reply from the LSP server
# Result: CompletionItem[] | CompletionList | null
export def CompletionReply(lspserver: dict<any>, cItems: any)
lspserver.completeItemsIsIncomplete = false
if cItems->empty()
if lspserver.omniCompletePending
lspserver.completeItems = []
Expand All @@ -155,8 +156,6 @@ export def CompletionReply(lspserver: dict<any>, cItems: any)
return
endif

lspserver.completeItemsIsIncomplete = false

var items: list<dict<any>>
if cItems->type() == v:t_list
items = cItems
Expand Down

0 comments on commit 314a41a

Please sign in to comment.