add new mappings

This commit is contained in:
nganhkhoa 2021-04-05 17:15:52 +07:00
parent 44c9c07acc
commit bd3bfa42aa

View File

@ -13,6 +13,27 @@
(noremap :n :j :gj) (noremap :n :j :gj)
(noremap :n :k :gk) (noremap :n :k :gk)
(noremap :t :<esc> :<C-\><C-n>)
(noremap :t :jj :<esc>)
(nvim.set_keymap
"n"
"<leader>s"
":mksession!<CR>"
{:noremap true :silent true})
(nvim.set_keymap
"n"
"[<Space>"
":call append(line('.') - 1, repeat([''], v:count1))<CR>"
{:noremap true :silent true})
(nvim.set_keymap
"n"
"]<Space>"
":call append(line('.'), repeat([''], v:count1))<CR>"
{:noremap true :silent true})
(set nvim.o.tabstop 2) (set nvim.o.tabstop 2)
(set nvim.bo.tabstop 2) (set nvim.bo.tabstop 2)