mirror of
https://github.com/pnx/dotfiles
synced 2026-06-17 03:30:01 +02:00
new nvim config
This commit is contained in:
parent
4b730d3924
commit
7388c9bfd3
78 changed files with 1291 additions and 43 deletions
7
nvim/lua/utils/keys.lua
Normal file
7
nvim/lua/utils/keys.lua
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
return function(v, opts)
|
||||
local c = vim.deepcopy(v)
|
||||
local lhs = table.remove(c, 1)
|
||||
local rhs = table.remove(c, 1)
|
||||
opts = vim.tbl_deep_extend("force", c, opts or {})
|
||||
vim.keymap.set('n', lhs, rhs, opts)
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue