update `dump()` snippet

pull/71/head
Timothée Sterle 3 years ago
parent ef370d6b73
commit bcbc72d9c0
No known key found for this signature in database
GPG Key ID: 136D558122196ED5

@ -394,6 +394,7 @@ Writing `print(vim.inspect(x))` every time you want to inspect the contents of a
function _G.dump(...)
local objects = vim.tbl_map(vim.inspect, {...})
print(unpack(objects))
return ...
end
```

@ -488,6 +488,7 @@ have a global wrapper function somewhere in your configuration:
function _G.dump(...)
local objects = vim.tbl_map(vim.inspect, {...})
print(unpack(objects))
return ...
end
<

Loading…
Cancel
Save