home: vim: add 'dump' utility function
This commit is contained in:
parent
2ad4ba563d
commit
eaeb9db76f
1 changed files with 6 additions and 0 deletions
|
|
@ -1,5 +1,11 @@
|
|||
local M = {}
|
||||
|
||||
-- pretty print lua object
|
||||
-- @param obj any object to pretty print
|
||||
M.dump = function(obj)
|
||||
print(vim.inspect(obj))
|
||||
end
|
||||
|
||||
--- checks if a given command is executable
|
||||
---@param cmd string? command to check
|
||||
---@return boolean executable
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue