You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found it that changing REGEX in lua/blink/cmp/fuzz/lib.rs to r"\w{2,32}" seems to fix completions for non-ascii words. in the buffer. Originally, the get_words function would split aaaaaa aaaaáaaa into {'aaaaaa', 'aaaa', aaa} (skipping over á), now it splits it as {'aaaaaa', 'aaaaáaaa'}.
Is there a reason why this approach would not work? (Is it too expensive to use unicode aware regexes?)
EDIT: r"[\w-]{2,32}" works better if you want to complete things with hyphens too (turns out I am working on a spanish language typst document where a bunch of terms include hyphens, so that was needed).
Nvim-cmp's buffer source (only this one matters imo), you could configure like this
And this regex captured non latin characters for completion. I tried playing with
opts.trigger.completion.keyword_regex
, but I couldn't make it work.The text was updated successfully, but these errors were encountered: