Update .config/nvim/init.lua
This commit is contained in:
parent
83b21030b6
commit
c9f30ab420
1 changed files with 12 additions and 0 deletions
|
|
@ -42,3 +42,15 @@ vim.o.iskeyword = '@,48-57,_,192-255,-'
|
|||
vim.o.tabstop = 2
|
||||
vim.o.shiftwidth = 2
|
||||
|
||||
-- Keymaps
|
||||
local nmap = function(lhs, rhs, desc)
|
||||
vim.keymap.set('n', lhs, rhs, { desc = desc })
|
||||
end
|
||||
|
||||
local nmap_leader = function(lhs, rhs, desc)
|
||||
vim.keymap.set('n', '<Leader>' .. lhs, rhs, { desc = desc })
|
||||
end
|
||||
|
||||
nmap('[p', '<Cmd>exe "put! " . v:register<CR>', 'Paste above')
|
||||
nmap(']p', '<Cmd>exe "put " . v:register<Cr>', 'Paste below')
|
||||
nmap_leader('ei', '<Cmd>edit $MYVIMRC<CR>', 'init.lua')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue