lua stuff
This commit is contained in:
11
vim/.vim/lua/utils.lua
Normal file
11
vim/.vim/lua/utils.lua
Normal file
@ -0,0 +1,11 @@
|
||||
local M = {}
|
||||
|
||||
function M.map(mode, lhs, rhs, opts)
|
||||
local options = { noremap = true }
|
||||
if opts then
|
||||
options = vim.tbl_extend("force", options, opts)
|
||||
end
|
||||
vim.api.nvim_set_keymap(mode, lhs, rhs, options)
|
||||
end
|
||||
|
||||
return M
|
Reference in New Issue
Block a user