Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Commit

Permalink
feat(maps): add keybindings for tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
nexxeln committed Oct 9, 2022
1 parent 5ddeb89 commit 5b89332
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lua/maps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,18 @@ map("n", "<M-z>", function()
end
end, { silent = true })

-- tabs
map("n", "<leader>ta", "<cmd>$tabnew<CR>", { noremap = true })
map("n", "<leader>tc", "<cmd>tabclose<CR>", { noremap = true })
map("n", "<leader>to", "<cmd>tabonly<CR>", { noremap = true })
map("n", "<leader>tn", "<cmd>tabnext<CR>", { noremap = true })
map("n", "<leader>tp", "<cmd>tabprevious<CR>", { noremap = true })

-- move current tab to previous position
map("n", "<leader>tmp", "<cmd>-tabmove<CR>", { noremap = true })

-- move current tab to next position
map("n", "<leader>tmn", "<cmd>+tabmove<CR>", { noremap = true })

-- trouble.nvim
map("n", "<leader>x", "<cmd>TroubleToggle<CR>", { silent = true })

0 comments on commit 5b89332

Please sign in to comment.