dotfiles/home/.config/nvim/lua/keybinds.lua
Marko Korhonen a097eb15be
Remove some redundant keymappings
F.ex <C-j> to original keymapping <C-w>j to switch to left window
2022-09-03 00:56:31 +03:00

11 lines
285 B
Lua

local map = vim.keymap.set
-- Navigate between buffers
map('n', '<C-N>', vim.cmd.bn, {silent = true})
map('n', '<C-B>', vim.cmd.bp, {silent = true})
-- Run Neoformat
map('n', '<M-f>', vim.cmd.Neoformat, {})
-- Exit terminal insert mode with esc
map('t', '<Esc>', '<C-\\><C-n>', {})