Skip to content

Commit

Permalink
fix deprecate check
Browse files Browse the repository at this point in the history
  • Loading branch information
uga-rosa committed Jan 21, 2024
1 parent b0c20f8 commit 359316b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/cmp_dictionary/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ end
local function fixDeprecated(opts)
_fix(opts, "exact", "exact_length")
_fix(opts, "max_items", "max_number_items")
_fix(opts, "document")
if is.Boolean(opts.document) or opts.document_command then
opts.document = nil
opts.document_command = nil
warning("You need to check `:h cmp-dictionary-option-document`")
end
_fix(opts, "sqlite")
_fix(opts, "capacity")
end
Expand Down

0 comments on commit 359316b

Please sign in to comment.