From 1797f9e1acd2e0b5b4b6805928aebc1dcc0ecbff Mon Sep 17 00:00:00 2001 From: hrsh7th Date: Thu, 20 Jan 2022 17:26:05 +0900 Subject: [PATCH] fmt&lint --- lua/cmp/entry.lua | 2 +- lua/cmp/utils/keymap_spec.lua | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lua/cmp/entry.lua b/lua/cmp/entry.lua index 07ceb52..aa8fda4 100644 --- a/lua/cmp/entry.lua +++ b/lua/cmp/entry.lua @@ -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. diff --git a/lua/cmp/utils/keymap_spec.lua b/lua/cmp/utils/keymap_spec.lua index 3b3dce3..e9c19ab 100644 --- a/lua/cmp/utils/keymap_spec.lua +++ b/lua/cmp/utils/keymap_spec.lua @@ -83,14 +83,13 @@ describe('keymap', function() silent = true, callback = function() return keymap.t('()') - 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()