add fundamental nvim and vim configs

This commit is contained in:
mokou 2022-03-13 21:00:12 +01:00
parent 285321fa38
commit 99c942cc3b
8 changed files with 274 additions and 0 deletions

View file

@ -0,0 +1,12 @@
-- General utilities
local M = {}
function M.map(mode, lhs, rhs)
vim.api.nvim_set_keymap(mode, lhs, rhs, {silent = true})
end
function M.nmap(lhs, rhs) M.map("n", lhs, rhs) end
function M.xmap(lhs, rhs) M.map("x", lhs, rhs) end
return M