home: vim: add 'dump' utility function

This commit is contained in:
Bruno BELANYI 2022-03-04 15:05:34 +01:00
parent 14d9837b07
commit 04761da664

View file

@ -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