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:
Mathias Fussenegger
2024-05-28 21:37:46 +02:00
committed by Mathias Fußenegger
parent 025c874415
commit 0df2c6b5d0
2 changed files with 11 additions and 5 deletions

View File

@@ -228,7 +228,7 @@ describe('vim.lsp.completion: item conversion', function()
},
},
{
filterText = 'notthis_thread',
filterText = 'no_match',
insertText = 'notthis_thread',
insertTextFormat = 1,
kind = 9,