home: vim: add 'dump' utility function
This commit is contained in:
parent
2ad4ba563d
commit
eaeb9db76f
|
@ -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…
Reference in a new issue