From 5b27589f7b1f23a09484ec4209293ce918aa22b1 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 26 Feb 2024 22:48:12 -0600 Subject: [PATCH] feat(nvim): add bindings for tabs in Neovide --- dots/.config/nvim/lua/neovide.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dots/.config/nvim/lua/neovide.lua b/dots/.config/nvim/lua/neovide.lua index e6cf199a..0eb3c276 100644 --- a/dots/.config/nvim/lua/neovide.lua +++ b/dots/.config/nvim/lua/neovide.lua @@ -16,3 +16,11 @@ vim.keymap.set('t', '', '"+Pi', { noremap = true, silent = true vim.api.nvim_set_keymap("", "", "+p", { noremap = true, silent = true }) vim.api.nvim_set_keymap("!", "", "+", { noremap = true, silent = true }) vim.api.nvim_set_keymap("v", "", "+", { noremap = true, silent = true }) + +-- Next/prev tabs +vim.api.nvim_set_keymap("n", "", ":tabnext", { noremap = true, silent = true }) +vim.api.nvim_set_keymap("n", "", ":tabprevious", { noremap = true, silent = true }) + +-- Spawn new terminal in new tab +vim.api.nvim_set_keymap("n", "", ":tabnew | terminal", { noremap = true, silent = true }) +