Skip to content

Commit

Permalink
completeItems item may not be present in omnicompletion callback
Browse files Browse the repository at this point in the history
  • Loading branch information
yegappan committed Feb 25, 2024
1 parent 2d1f155 commit 0f774f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/lsp/completion.vim
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ def g:LspOmniFunc(findstart: number, base: string): any
return v:none
endif

var res: list<dict<any>> = lspserver.completeItems
var res: list<dict<any>> = lspserver->get('completeItems', [])
var prefix = lspserver.omniCompleteKeyword

# Don't attempt to filter on the items, when "isIncomplete" is set
Expand Down

0 comments on commit 0f774f9

Please sign in to comment.