feat: add more bugs
This commit is contained in:
@ -38,6 +38,7 @@ function M:insert(items)
|
||||
indent = items.indent,
|
||||
highlight = items.highlight,
|
||||
}
|
||||
|
||||
local highlight = {}
|
||||
|
||||
|
||||
|
20
lua/Trans/component/items.lua
Normal file
20
lua/Trans/component/items.lua
Normal file
@ -0,0 +1,20 @@
|
||||
local M = {}
|
||||
M.__index = M
|
||||
M.len = 0
|
||||
|
||||
function M:new()
|
||||
local items = {}
|
||||
setmetatable(items, self)
|
||||
return items
|
||||
end
|
||||
|
||||
function M:insert(item, highlight)
|
||||
table.insert(self, item)
|
||||
self.len = self.len + #item
|
||||
end
|
||||
|
||||
function M:format(win_width)
|
||||
|
||||
end
|
||||
|
||||
return M
|
Reference in New Issue
Block a user