summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-02-26 18:16:45 +0100
committerxengineering <me@xengineering.eu>2024-02-26 20:33:10 +0100
commitf12ddec8de3b2f85dab6ff9fa7a5d48119674c2b (patch)
tree0703149f9f01cd5c80f11555f16613fae5c4261a
parent85051d18496df4b17f0173fa6a131a5fa65cc317 (diff)
downloaddotfiles-f12ddec8de3b2f85dab6ff9fa7a5d48119674c2b.tar
dotfiles-f12ddec8de3b2f85dab6ff9fa7a5d48119674c2b.tar.zst
dotfiles-f12ddec8de3b2f85dab6ff9fa7a5d48119674c2b.zip
nvim: Use <Tab> and <S-Tab> for tabs
This is far more intuitive than F7 and F8.
-rw-r--r--nvim/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/nvim/init.lua b/nvim/init.lua
index 3542221..a8bf90d 100644
--- a/nvim/init.lua
+++ b/nvim/init.lua
@@ -14,8 +14,8 @@ vim.opt.fileencodings = {'utf-8'}
vim.opt.list = true
vim.opt.listchars = {tab = '→ ', nbsp = '␣', trail = '•'}
-vim.keymap.set('n', '<F7>', ':tabp <LF>')
-vim.keymap.set('n', '<F8>', ':tabn <LF>')
+vim.keymap.set('n', '<Tab>', ':tabn <LF>')
+vim.keymap.set('n', '<S-Tab>', ':tabp <LF>')
vim.keymap.set('n', '<F5>', ':%!xxd -r <LF>')
vim.keymap.set('n', '<F6>', ':%!xxd <LF>')