fix: add max_size support and definition need better format

This commit is contained in:
JuanZoran
2023-01-10 23:15:31 +08:00
parent 32eeae88d4
commit 01f5882b13
16 changed files with 223 additions and 105 deletions

View File

@ -1,32 +0,0 @@
local M = {}
-- INFO : get loaded debug conf
local type_check = true
M.type_check = function (types)
if type_check then
vim.validate(types)
end
end
-- local function dedent(lines)
-- local ind_size = math.huge
-- for i, _ in ipairs(lines) do
-- local i1, i2 = lines[i]:find("^%s*[^%s]")
-- if i1 and i2 < ind_size then
-- ind_size = i2
-- end
-- end
-- for i, _ in ipairs(lines) do
-- lines[i] = lines[i]:sub(ind_size, -1)
-- end
-- end
--
-- function M.dedent(s)
-- local lst = vim.split(s, "\n")
-- dedent(lst)
-- return table.concat(lst, "\n")
-- end
return M