From 20aa77b492414cf249c92df7f5a9d6fa2d0196af Mon Sep 17 00:00:00 2001 From: hrsh7th Date: Sun, 10 Oct 2021 14:04:39 +0900 Subject: [PATCH] format&lint --- lua/cmp/utils/buffer.lua | 4 ++-- lua/cmp/view.lua | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lua/cmp/utils/buffer.lua b/lua/cmp/utils/buffer.lua index 56f0ac1..f3d1c8e 100644 --- a/lua/cmp/utils/buffer.lua +++ b/lua/cmp/utils/buffer.lua @@ -1,7 +1,7 @@ local buffer = {} buffer.ensure = setmetatable({ - cache = {} + cache = {}, }, { __call = function(self, name) if not (self.cache[name] and vim.api.nvim_buf_is_valid(self.cache[name])) then @@ -11,7 +11,7 @@ buffer.ensure = setmetatable({ self.cache[name] = buf end return self.cache[name] - end + end, }) return buffer diff --git a/lua/cmp/view.lua b/lua/cmp/view.lua index 1abd0da..c3debdf 100644 --- a/lua/cmp/view.lua +++ b/lua/cmp/view.lua @@ -6,7 +6,6 @@ local docs_view = require('cmp.view.docs_view') local custom_entries_view = require('cmp.view.custom_entries_view') local native_entries_view = require('cmp.view.native_entries_view') local ghost_text_view = require('cmp.view.ghost_text_view') -local misc = require('cmp.utils.misc') ---@class cmp.View ---@field public event cmp.Event