updates
This commit is contained in:
12
lua/utils/keymaps/converters/from_table/init.lua
Normal file
12
lua/utils/keymaps/converters/from_table/init.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
local M = {}
|
||||
local map = vim.keymap.set
|
||||
local opts = { noremap = true, silent = true }
|
||||
|
||||
function M.set_keybindings(bindings)
|
||||
for _, binding in ipairs(bindings) do
|
||||
map(binding.mode, binding.key, binding.cmd, binding.opts or opts)
|
||||
end
|
||||
return bindings
|
||||
end
|
||||
|
||||
return M
|
||||
Reference in New Issue
Block a user