add fundamental nvim and vim configs
This commit is contained in:
parent
285321fa38
commit
99c942cc3b
8 changed files with 274 additions and 0 deletions
12
dot_config/nvim/lua/utils.lua
Normal file
12
dot_config/nvim/lua/utils.lua
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue