dev: automated commit - 2025-12-23 14:01:36

This commit is contained in:
Mariano Z. 2025-12-23 14:01:36 -03:00
parent 5c82cd5345
commit cc797ee5f1
6 changed files with 74 additions and 226 deletions

View file

@ -1,2 +1,27 @@
require("globals.map")
require("globals.icons")
_G.map = function(mode, keys, func, opts)
opts = opts or {}
opts.desc = opts.desc or nil
vim.keymap.set(mode, keys, func, opts)
end
_G.nmap = function(keys, func, opts)
_G.map("n", keys, func, opts)
end
_G.imap = function(keys, func, opts)
_G.map("i", keys, func, opts)
end
_G.vmap = function(keys, func, opts)
_G.map("v", keys, func, opts)
end
_G.dd = function(...)
Snacks.debug.inspect(...)
end
_G.bt = function()
Snacks.debug.backtrace()
end
vim.print = _G.dd