Meh I'll figure out submodules later
This commit is contained in:
parent
4ca9d44a90
commit
8cb281f436
352 changed files with 66107 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
|||
local m = {}
|
||||
|
||||
m.flatten = (function()
|
||||
if vim.fn.has "nvim-0.11" == 1 then
|
||||
return function(t)
|
||||
return vim.iter(t):flatten():totable()
|
||||
end
|
||||
else
|
||||
return function(t)
|
||||
return vim.tbl_flatten(t)
|
||||
end
|
||||
end
|
||||
end)()
|
||||
|
||||
m.islist = vim.islist or vim.tbl_islist
|
||||
|
||||
return m
|
||||
Loading…
Add table
Add a link
Reference in a new issue