hrsh7th / nvim-cmp

A completion plugin for neovim coded in Lua.
MIT License
7.53k stars 377 forks source link

Feature request: Option to match against item descriptions #1703

Closed micangl closed 10 months ago

micangl commented 10 months ago

Currently, it's only possible to fuzzy match against the completion keywords, and an option to allow matching against item descriptions doesn't exist (what I'm referring to, with the word description, are the entries in the pink rectangle). 2023-09-16T00:39:10,317768269+02:00 This may be useful, for example, when completing Latex \cite{ statements.

bew commented 10 months ago

Why did you close this ? :thinking:

micangl commented 10 months ago

@bew I've discovered that matching is controlled by the filterText argument of the CompletionItem, which has to be set directly by the source. If you want, I can reopen the issue.