From 5db3ff76a2d75fb5b3a9fd6bd671fdb7b704a4ab Mon Sep 17 00:00:00 2001 From: Natasha Moongrave Date: Wed, 4 Mar 2026 17:35:19 +0100 Subject: added tab related keybinds to neovim --- modules/home/i3wm/nord-blue/nvim.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'modules/home/i3wm') diff --git a/modules/home/i3wm/nord-blue/nvim.nix b/modules/home/i3wm/nord-blue/nvim.nix index 7ddd273..2374041 100644 --- a/modules/home/i3wm/nord-blue/nvim.nix +++ b/modules/home/i3wm/nord-blue/nvim.nix @@ -49,6 +49,32 @@ }) end, { desc = "Find files (cwd)" }) + -- TAB KEYBINDS (t-based navigation) + -- Open in new tab with "t" in lua file tree + vim.keymap.set("n", "t", function() + local node = api.tree.get_node_under_cursor() + if node and node.type == "file" then + vim.cmd("tabnew " .. node.absolute_path) + end + end, opts("Open in new tab")) + -- New tab + vim.keymap.set("n", "tt", "tabnew", { desc = "New tab" }) + + -- Close tab + vim.keymap.set("n", "tc", "tabclose", { desc = "Close tab" }) + + -- Next tab + vim.keymap.set("n", "tn", "tabnext", { desc = "Next tab" }) + + -- Previous tab + vim.keymap.set("n", "tp", "tabprevious", { desc = "Previous tab" }) + + -- First tab + vim.keymap.set("n", "t0", "tabfirst", { desc = "First tab" }) + + -- Last tab + vim.keymap.set("n", "t$", "tablast", { desc = "Last tab" }) + -- Catppuccin theme require("catppuccin").setup({ -- cgit v1.2.3