home/dot_config/nvim/lua/utils.lua
2022-03-13 21:00:12 +01:00

12 lines
243 B
Lua

-- 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