Implement middle fuzzy matching

Fixes #1422
This commit is contained in:
hrsh7th
2023-02-11 22:52:28 +09:00
parent 53f49c5145
commit aae0c3e4e7
6 changed files with 17 additions and 4 deletions

View File

@@ -365,11 +365,13 @@ entry.match = function(self, input, matching_config)
input,
self.resolved_completion_item and '1' or '0',
matching_config.disallow_fuzzy_matching and '1' or '0',
matching_config.disallow_partial_fuzzy_matching and '1' or '0',
matching_config.disallow_partial_matching and '1' or '0',
matching_config.disallow_prefix_unmatching and '1' or '0',
}, function()
local option = {
disallow_fuzzy_matching = matching_config.disallow_fuzzy_matching,
disallow_partial_fuzzy_matching = matching_config.disallow_partial_fuzzy_matching,
disallow_partial_matching = matching_config.disallow_partial_matching,
disallow_prefix_unmatching = matching_config.disallow_prefix_unmatching,
synonyms = {