hrsh7th / nvim-cmp

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

matcher issue #1971

Open epheien opened 3 days ago

epheien commented 3 days ago

FAQ

Announcement

Minimal reproducible full config

Description

this is a fuzzy matcher bug

Steps to reproduce

    local score, matches = matcher.match('core', 'lua/cmp/core.lua', config.matching)
    print(score)
    print(vim.inspect(matches))

add these code in matcher_spec.lua, and run vusted ./lua/cmp/matcher_spec.lua

Expected behavior

can see a lua table to print

Actual behavior

0
{}
...

Additional context

No response

epheien commented 2 days ago
  matching = {
    disallow_partial_fuzzy_matching = false, -- default: true
    disallow_symbol_nonprefix_matching = false, -- default: true
  }

add this option is a temp workaround