idr important stuff

This commit is contained in:
iris committed 2022-08-21 13:09:41 -04:00
1 parent d00a914e63
commit c4f2a1e4cb
5 files changed
+31 -18

No files matched your search

+3 -1
View File
@@ -4,7 +4,9 @@ local opts = { noremap = true, silent = true }
local mapping = {}
mapping.map = function(mode, from, to) vim.keymap.set(mode, from, to, opts) end
mapping.nmap = function(from, to) vim.keymap.set('n', from, to, opts) end
mapping.cmd = function(content) return '<cmd>' .. content .. '<cr>' end
mapping.cmd = function(from, content)
vim.keymap.set('n', from, '<cmd>' .. content .. '<cr>', opts)
end
-- layout (mapping)
local layout = {}