From f3154503473d21d61a7e87b257b95cd5cff1c957 Mon Sep 17 00:00:00 2001 From: Ilya Grigoryev Date: Mon, 2 Oct 2023 13:54:03 +0300 Subject: [PATCH] feat(switch_tabs): added moving between tabs in Terminal mode --- lua/other_modules/mappings/switch_tabs.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lua/other_modules/mappings/switch_tabs.lua b/lua/other_modules/mappings/switch_tabs.lua index cbe596d..2cc2bc9 100644 --- a/lua/other_modules/mappings/switch_tabs.lua +++ b/lua/other_modules/mappings/switch_tabs.lua @@ -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('', n_tab), + string.format('%dgt', n_tab), + { desc = 'Switch tabs by using Alt+{number} in terminal' } + ) end