add config folder

This commit is contained in:
Tibeuleu
2024-02-27 11:54:00 +01:00
commit 738538d51b
33 changed files with 1776 additions and 0 deletions

View File

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