hrsh7th / nvim-cmp

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

Use `keyword_pattern` for `is_symbol` check #1975

Open joshbode opened 4 months ago

joshbode commented 4 months ago

Use keyword_pattern in place of char.is_symbol to improve matching (especially useful for improving for cmp-path and cmp-cmdline matches in the command-line).

Falls back to original behaviour of using char.is_symbol if no keyword_pattern is provided/specified for a source.

joshbode commented 4 months ago

with this change:

image

without the change, no matches