add subtree for kickstart.nvim

This commit is contained in:
Rahsheen Porter 2024-02-25 23:08:19 -05:00
parent 81a3a3395a
commit 349c25c5ba
9 changed files with 296 additions and 8 deletions

View file

@ -0,0 +1,20 @@
local M = {}
local function bind(op, outer_opts)
outer_opts = outer_opts or {noremap = true}
return function(lhs, rhs, opts)
opts = vim.tbl_extend("force",
outer_opts,
opts or {}
)
vim.keymap.set(op, lhs,rhs, opts)
end
end
M.nmap = bind("n", {noremap = false})
M.nnoremap = bind("n")
M.vnoremap = bind("v")
M.xnoremap = bind("x")
M.inoremap = bind("i")
return M