my current config
This commit is contained in:
parent
c9c2338359
commit
389244c001
5 changed files with 112 additions and 21 deletions
17
lua/kickstart/dump.lua
Normal file
17
lua/kickstart/dump.lua
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
local function dump(o)
|
||||
if type(o) == 'table' then
|
||||
local s = '{ '
|
||||
for k, v in pairs(o) do
|
||||
if type(k) ~= 'number' then
|
||||
k = '"' .. k .. '"'
|
||||
end
|
||||
s = s .. '[' .. k .. '] = ' .. dump(v) .. ','
|
||||
end
|
||||
return s .. '} '
|
||||
else
|
||||
return tostring(o)
|
||||
end
|
||||
end
|
||||
function PrintTable(o)
|
||||
print(dump(o))
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue