Skip to content

Commit

Permalink
fix(provider): add missing validations (#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
soifou authored Dec 12, 2024
1 parent 164b8d5 commit 1eda2b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/blink/cmp/config/sources.lua
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ function sources.validate_provider(id, provider)
module = { provider.module, 'string' },
enabled = { provider.enabled, { 'boolean', 'function' }, true },
opts = { provider.opts, 'table', true },
async = { provider.async, { 'boolean', 'function' }, true },
timeout_ms = { provider.timeout_ms, { 'number', 'function' }, true },
transform_items = { provider.transform_items, 'function', true },
should_show_items = { provider.should_show_items, { 'boolean', 'function' }, true },
max_items = { provider.max_items, { 'number', 'function' }, true },
Expand Down

0 comments on commit 1eda2b9

Please sign in to comment.