Added better keybindings to neovim

This commit is contained in:
z3rOR0ne 2022-09-07 01:43:27 -07:00
parent 22856a2223
commit dcc2b80b52
2 changed files with 11 additions and 1 deletions

View file

@ -15,7 +15,13 @@ keymap('n', '<a-right>', '<c-w>:tabnext<CR>', {})
keymap('n', '<c-h>', '<c-w>:wincmd h<CR>', {}) keymap('n', '<c-l>', '<c-w>:wincmd l<CR>', {})
-- open fzf
keymap('n', '<c-p>', '<c-w>:Files<CR>', {})
vim.cmd[[nnoremap fzf :silent :Files]]
-- open ripgrep
vim.cmd[[nnoremap rg :silent :Rg]]
-- invoke Neoformat
vim.cmd[[nnoremap nf :silent :Neoformat]]
-- Toggle NERDCommenter with Ctrl + c
vim.cmd[[:map <C-c> <Plug>NERDCommenterToggle]]