dotfiles/home/.config/nvim/lua/keybinds.lua

12 lines
289 B
Lua
Raw Normal View History

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 })
2022-01-31 14:38:02 +02:00
-- Run Neoformat
map("n", "<M-f>", vim.cmd.Neoformat, {})
-- Exit terminal insert mode with esc
map("t", "<Esc>", "<C-\\><C-n>", {})