dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit 60a575c45319f84926af2c130f55607aa8a5b8ec
parent c78ebd389fdf787e373b9324a4e6fbe979faa7b6
Author: Chris Bracken <chris@bracken.jp>
Date:   Mon,  8 Jun 2026 20:26:46 +0900

nvim: map <leader>0,1-9 to tabnew and switching

Maybe I can convince myself to use tabs.

Diffstat:
M.config/nvim/lua/config/keymaps.lua | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/.config/nvim/lua/config/keymaps.lua b/.config/nvim/lua/config/keymaps.lua @@ -9,6 +9,12 @@ vim.keymap.set('n', '<Down>', '<NOP>') vim.keymap.set('n', '<Left>', '<NOP>') vim.keymap.set('n', '<Right>', '<NOP>') +-- Tab creation and switching. +vim.keymap.set('n', '<leader>0', ':tabnew<CR>', { desc = 'New tab', silent = true }) +for i = 1, 9 do + vim.keymap.set('n', '<leader>' .. i, i .. 'gt', { desc = 'Go to tab ' .. i, silent = true }) +end + -- In terminal, C-[ (ESC) is passed through to the terminal by default. -- Remap C-] to return to normal mode like C-[ does by default. vim.keymap.set('t', '<C-]>', '<C-\\><C-n>')