Skip to content

feat(autocomplete): Fuzzy match autocompletion #1024

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kristijanhusak
Copy link
Member

Summary

Add support for fuzzy matching in autocompletion.

Related Issues

Related #1010

Changes

  • Both blink.cmp and nvim-cmp now do fuzzy matching by default
  • Ominfunc does fuzzy matching only if completeopt has fuzzy

Checklist

I confirm that I have:

  • Followed the
    Conventional Commits
    specification
    (e.g., feat: add new feature, fix: correct bug,
    docs: update documentation).
  • My PR title also follows the conventional commits specification.
  • Updated relevant documentation, if necessary.
  • Thoroughly tested my changes.
  • Added tests (if applicable) and verified existing tests pass with
    make test.
  • Checked for breaking changes and documented them, if any.

@kristijanhusak
Copy link
Member Author

@seflue give this PR a test. It should provide fuzzy completion for most of the things. Only one thing that I found, which was probably a bug even before, is that relative path completion that goes up more than one directory doesn't work (so ../ works but ../../ does not work). That can be addressed later.

Let me know how it works for you.

@kristijanhusak kristijanhusak force-pushed the feat/autocomplete-fuzzy branch from 84ce1ba to b409b4d Compare August 12, 2025 20:52
@kristijanhusak kristijanhusak force-pushed the feat/autocomplete-fuzzy branch from b409b4d to 5bbc31f Compare August 12, 2025 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant