mirror of
https://github.com/neovim/neovim.git
synced 2026-02-20 01:09:56 +10:00
feat(lsp): use fuzzy match on filterText instead of prefix match
The `complete()` mechanism matches completion candidates against the typed text, so strict pre-filtering isn't necessary. This is a first step towards supporting postfix snippets (like `items@insert` in luals)
This commit is contained in:
committed by
Mathias Fußenegger
parent
025c874415
commit
0df2c6b5d0
@@ -228,7 +228,7 @@ describe('vim.lsp.completion: item conversion', function()
|
||||
},
|
||||
},
|
||||
{
|
||||
filterText = 'notthis_thread',
|
||||
filterText = 'no_match',
|
||||
insertText = 'notthis_thread',
|
||||
insertTextFormat = 1,
|
||||
kind = 9,
|
||||
|
||||
Reference in New Issue
Block a user