Skip to content

Commit

Permalink
feat(keymaps): added switching tabs by number
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-grigoriev committed Sep 29, 2023
1 parent 3012683 commit b2ad76f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions lua/core/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ vim.keymap.set('n', '<C-b>', '<C-^><CR>', { noremap = true, desc = 'Go to previo

require('other_modules/mappings/running_file')
require('other_modules/mappings/_terminal')
require('other_modules/mappings/switch_tabs')
8 changes: 8 additions & 0 deletions lua/other_modules/mappings/switch_tabs.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
for n_tab = 1, 10, 1 do
vim.keymap.set(
'n',
string.format('<M-%d>', n_tab),
string.format('%dgt', n_tab),
{}
)
end

0 comments on commit b2ad76f

Please sign in to comment.