f3fora / cmp-spell

spell source for nvim-cmp based on vim's spellsuggest.
191 stars 3 forks source link

Call enable_in_context with params #9

Closed overhacked closed 11 months ago

overhacked commented 11 months ago

Pass params to enable_in_context so it can use, e.g., params.context.option.reason to suppress only autocomplete in certain contexts. Without params.context the reason is only accessible via the hacky require('cmp').core.context, which might be subject to data races because core.context is overwritten each time a completion request is made to a source.

overhacked commented 11 months ago

Hey, thank you! That was fast. :rocket: