move to nvim lua and lsp

This commit is contained in:
Rahsheen Porter 2022-11-06 23:46:45 -05:00
parent fc16a5466b
commit b63772bd4d
18 changed files with 692 additions and 323 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