Debugging
This commit is contained in:
parent
c61e332d64
commit
8b7e9f7117
12
plugins.vim
12
plugins.vim
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user