yegappan / lsp

Language Server Protocol (LSP) plugin for Vim9
MIT License
458 stars 49 forks source link

BUG: LspOmniFunc() throws E716 #450

Closed girishji closed 7 months ago

girishji commented 7 months ago

In LspOmniFunc() when cItems is empty (when findstart=1) it does not set the key 'completeItemsIsIncomplete' in the lspserver dictionary. When LspOmniFunc is called again with findstart=0, it fails.

line   46:
E716: Key not present in Dictionary: "completeItemsIsIncomplete"

This affects rust, nix, and other lsp servers: https://github.com/girishji/vimcomplete/issues/14

M autoload/lsp/completion.vim