diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-05-22 15:48:14 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-05-22 16:51:08 +0200 |
| commit | adb5bc477bad8f4d2789e75a37f36663d219bca3 (patch) | |
| tree | 1305078a1dc97def319352f162523e54bf9cc018 /init.lua | |
| parent | ab30d3988dbba43c893083d607064ec22e8ca083 (diff) | |
| download | nvim-config-adb5bc477bad8f4d2789e75a37f36663d219bca3.tar.gz nvim-config-adb5bc477bad8f4d2789e75a37f36663d219bca3.zip | |
misc(nvim): add shortcut to create tabpage
Diffstat (limited to 'init.lua')
| -rw-r--r-- | init.lua | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -127,6 +127,8 @@ vim.keymap.set("t", "<M-h>", "<C-\\><C-n><C-w>h", { desc = "Move left a window" vim.keymap.set("t", "<M-j>", "<C-\\><C-n><C-w>j", { desc = "Move down a window" }) vim.keymap.set("t", "<M-k>", "<C-\\><C-n><C-w>k", { desc = "Move up a window" }) vim.keymap.set("t", "<M-l>", "<C-\\><C-n><C-w>l", { desc = "Move right a window" }) +-- Create tabpage +vim.keymap.set("n", "<M-t>", "<Cmd>tabnew<CR>", { desc = "Create new tabpage" }) -- Navigate tab vim.keymap.set({ "n", "i", "t" }, "<M-p>", "<Cmd>tabnext #<CR>", { desc = "Move to last accessed tab page" }) vim.keymap.set({ "n", "i", "t" }, "<M-n>", "<Cmd>tabnext<CR>", { desc = "Move to next tab page" }) |
