Optimize performance

This commit is contained in:
hrsh7th
2022-09-25 21:24:08 +09:00
parent 17a55b3d54
commit e1f31778a8
4 changed files with 13 additions and 11 deletions

View File

@@ -1,4 +1,3 @@
local cache = require('cmp.utils.cache')
local misc = require('cmp.utils.misc')
local buffer = require('cmp.utils.buffer')
local api = require('cmp.utils.api')
@@ -20,7 +19,6 @@ local api = require('cmp.utils.api')
---@field public style cmp.WindowStyle
---@field public opt table<string, any>
---@field public buffer_opt table<string, any>
---@field public cache cmp.Cache
local window = {}
---new
@@ -32,7 +30,6 @@ window.new = function()
self.sbar_win = nil
self.thumb_win = nil
self.style = {}
self.cache = cache.new()
self.opt = {}
self.buffer_opt = {}
return self