fmt&lint
This commit is contained in:
@@ -342,7 +342,7 @@ entry.match = function(self, input)
|
||||
return self.match_cache:ensure({ input, self.resolved_completion_item and 1 or 0 }, function()
|
||||
local filter_text = self:get_filter_text()
|
||||
|
||||
local score, matches
|
||||
local score, matches, _
|
||||
score, matches = matcher.match(input, filter_text, { self:get_word(), self:get_completion_item().label })
|
||||
|
||||
-- Support the language server that doesn't respect VSCode's behaviors.
|
||||
|
||||
@@ -83,14 +83,13 @@ describe('keymap', function()
|
||||
silent = true,
|
||||
callback = function()
|
||||
return keymap.t('()<Left>')
|
||||
end
|
||||
end,
|
||||
})
|
||||
local fallback = keymap.fallback(0, 'i', keymap.get_map('i', '('))
|
||||
local state = keys('i' .. fallback.keys, fallback.noremap and 'n' or 'm')
|
||||
assert.are.same({ '()' }, state.buffer)
|
||||
assert.are.same({ 1, 1 }, state.cursor)
|
||||
end)
|
||||
|
||||
end)
|
||||
|
||||
describe('realworld', function()
|
||||
|
||||
Reference in New Issue
Block a user