diff options
Diffstat (limited to 'modules/home')
| -rw-r--r-- | modules/home/i3wm/nord-blue/nvim.nix | 26 |
1 files changed, 26 insertions, 0 deletions
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", "<cmd>tabnew<CR>", { desc = "New tab" }) + + -- Close tab + vim.keymap.set("n", "tc", "<cmd>tabclose<CR>", { desc = "Close tab" }) + + -- Next tab + vim.keymap.set("n", "tn", "<cmd>tabnext<CR>", { desc = "Next tab" }) + + -- Previous tab + vim.keymap.set("n", "tp", "<cmd>tabprevious<CR>", { desc = "Previous tab" }) + + -- First tab + vim.keymap.set("n", "t0", "<cmd>tabfirst<CR>", { desc = "First tab" }) + + -- Last tab + vim.keymap.set("n", "t$", "<cmd>tablast<CR>", { desc = "Last tab" }) + -- Catppuccin theme require("catppuccin").setup({ |
