my current config

This commit is contained in:
onlinemax 2024-10-09 13:51:59 -04:00
parent c9c2338359
commit 389244c001
5 changed files with 112 additions and 21 deletions

17
lua/kickstart/dump.lua Normal file
View 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