Skip to content

Commit

Permalink
Fix E1044 in older versions of Vim
Browse files Browse the repository at this point in the history
M  autoload/vimcomplete/lsp.vim
  • Loading branch information
girishji committed Oct 3, 2024
1 parent 82b7945 commit a02302d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion autoload/vimcomplete/lsp.vim
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,14 @@ export def Completor(findstart: number, base: string): any
return items
enddef

if get(g:, 'loaded_lsp', false) && v:versionlong >= 9010650
if v:versionlong < 9010650
export def GetTriggerKind(): number
return -1
enddef
finish
endif

if get(g:, 'loaded_lsp', false)
import autoload 'lsp/buffer.vim' as buf
# Return trigger kind and trigger char. If completion trigger is not a keyword
# and not one of the triggerCharacters, return -1.
Expand Down

0 comments on commit a02302d

Please sign in to comment.