diff options
| author | Natasha Moongrave <natasha@256phi.eu> | 2026-03-04 17:35:19 +0100 |
|---|---|---|
| committer | Natasha Moongrave <natasha@256phi.eu> | 2026-03-04 17:35:19 +0100 |
| commit | 5db3ff76a2d75fb5b3a9fd6bd671fdb7b704a4ab (patch) | |
| tree | 0aa6ad262bfb25419e245112f5313b5f16aa562a /modules/home/i3wm/nord-blue | |
| parent | ac6b3f6ec3ee5696b892aa8814d482cf72777899 (diff) | |
added tab related keybinds to neovim
Diffstat (limited to 'modules/home/i3wm/nord-blue')
| -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({ |
