Debugging

This commit is contained in:
Alex Yatskov 2022-10-02 15:24:23 -07:00
parent c61e332d64
commit 8b7e9f7117

View File

@ -100,6 +100,18 @@ lua << EOF
-- Set completeopt to have a better completion experience
vim.o.completeopt = 'menuone,noselect'
-- Helper for dumping Lua tables
function _G.put(...)
local objects = {}
for i = 1, select('#', ...) do
local v = select(i, ...)
table.insert(objects, vim.inspect(v))
end
print(table.concat(objects, '\n'))
return ...
end
EOF
endif