Skip to content

Commit

Permalink
Fix regression in triggerWordLen option
Browse files Browse the repository at this point in the history
#84

M  autoload/vimcomplete/completor.vim
  • Loading branch information
girishji committed Nov 6, 2024
1 parent 45d924b commit 51788c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/vimcomplete/completor.vim
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ def SkipComplete(): bool
skip_complete = false
return true
endif
# if exists('*vsnip#jumpable') && (vsnip#jumpable(1) || vsnip#jumpable(-1))
if exists('*vsnip#jumpable') && vsnip#jumpable(1)
return true
endif
Expand All @@ -287,7 +286,8 @@ def VimComplete()
endif
if options.triggerWordLen > 0
var keyword = line->matchstr('\k\+$')
if keyword->len() < options.triggerWordLen && IsCompletor('lsp') && lsp.GetTriggerKind() != 2
if keyword->len() < options.triggerWordLen &&
(!IsCompletor('lsp') || lsp.GetTriggerKind() != 2)
return
endif
endif
Expand Down

0 comments on commit 51788c7

Please sign in to comment.