mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
nvim: indent fixes and keymaps
This commit is contained in:
parent
4102585363
commit
7883d02176
6 changed files with 75 additions and 60 deletions
|
|
@ -3,5 +3,11 @@ return function(v, opts)
|
|||
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)
|
||||
|
||||
local mode = 'n'
|
||||
if opts.mode then
|
||||
mode = opts.mode
|
||||
opts.mode = nil
|
||||
end
|
||||
vim.keymap.set(mode, lhs, rhs, opts)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue