Skip to content

Commit

Permalink
feat(switch_tabs): added moving between tabs in Terminal mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-grigoriev committed Oct 2, 2023
1 parent 5225120 commit f315450
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lua/other_modules/mappings/switch_tabs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,10 @@ for n_tab = 1, 10, 1 do
string.format('%dgt', n_tab),
{ desc = 'Switch tabs by using Alt+{number}' }
)
vim.keymap.set(
't',
string.format('<M-%d>', n_tab),
string.format('<C-\\><C-n>%dgt', n_tab),
{ desc = 'Switch tabs by using Alt+{number} in terminal' }
)
end

0 comments on commit f315450

Please sign in to comment.