1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 11:24:55 +02:00
dotfiles/nvim/lua/setup.lua

11 lines
230 B
Lua

local M = {}
M.keymaps = function(opts)
opts = type(opts) == 'string' and require(opts) or opts
vim.g.mapleader = opts.leader
for _, v in ipairs(opts.global) do
vim.keymap.set(unpack(v))
end
end
return M