Skip to content

Commit

Permalink
fix: calls by cmp.complete ignore the keyword_length option
Browse files Browse the repository at this point in the history
  • Loading branch information
uga-rosa committed Jul 15, 2024
1 parent e6e3ec9 commit 4286695
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lua/cmp_dictionary/source.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ function source:complete(request, callback)
isIncomplete = #req < opts.exact_length
end

-- Calls by cmp.complete ignore the keyword_length.
if #req < request.keyword_length then
callback({ items = {}, isIncomplete = true })
return
end

local items
if opts.first_case_insensitive then
if is_capital(req) then
Expand Down

0 comments on commit 4286695

Please sign in to comment.