mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
new nvim config
This commit is contained in:
parent
4b730d3924
commit
7388c9bfd3
78 changed files with 1291 additions and 43 deletions
12
nvim/lua/setup.lua
Normal file
12
nvim/lua/setup.lua
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue