diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-05-29 14:12:44 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-05-29 14:12:44 +0200 |
| commit | 4d2b8ef066a5854e6f005bc6a49b3d2ebaf84073 (patch) | |
| tree | d8377619f98cc443a40769c4bb6fd8310fa7956f /.config/nvim | |
| parent | 480e386e344c9034425218fa7dd2e82802ca64ad (diff) | |
| download | dotfiles-4d2b8ef066a5854e6f005bc6a49b3d2ebaf84073.tar.gz dotfiles-4d2b8ef066a5854e6f005bc6a49b3d2ebaf84073.zip | |
misc(nvim): add keymap to close current tabpage
Diffstat (limited to '.config/nvim')
| -rw-r--r-- | .config/nvim/init.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 00b2b1f..62dbac7 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -142,6 +142,7 @@ 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" }) +vim.keymap.set("n", "<C-w>t", "<Cmd>tabclose<CR>", { desc = "Delete current 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" }) |
