Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matching error for words with special characters and words with less than 3 characters #801

Closed
2 tasks done
TM10YMhp opened this issue Dec 27, 2024 · 2 comments
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@TM10YMhp
Copy link

Make sure you have done the following

  • I have updated to the latest version of blink.cmp
  • I have read the README

Bug Description

Words starting with &, $, #, _, __, --, -. are not matching correctly. In addition, words that have less than 3 characters are also not matching properly.

blink_1028.mp4

Relevant configuration

No response

neovim version

NVIM v0.10.3

blink.cmp version: branch, tag, or commit

v0.8.2

@TM10YMhp TM10YMhp added the bug Something isn't working label Dec 27, 2024
@Saghen
Copy link
Owner

Saghen commented Dec 27, 2024

We intentionally don't include words shorter than 3 characters from the buffer source, since they're too short to be useful imo. We don't match on any of the characters listed, only alphanumeric, you'll want to wait for #657 where we'll be able to set fuzzy ranges per source/item

@Saghen Saghen closed this as not planned Won't fix, can't repro, duplicate, stale Dec 27, 2024
@TM10YMhp
Copy link
Author

Including words of less than three characters from the buffer source is not very useful when the language server (LSP) is active. Without an active LSP, this can be cumbersome. Would it be possible to add an option to set the minimum number of characters from the buffer source?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants