From 4e4edec9892a8c52c3e7ad87491944643a25d1b3 Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Tue, 20 Aug 2024 15:29:28 +0300 Subject: [PATCH] Nvim: add keybind for alternate file --- home/.config/nvim/lua/keybinds.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/home/.config/nvim/lua/keybinds.lua b/home/.config/nvim/lua/keybinds.lua index 84e17e5..6676d12 100644 --- a/home/.config/nvim/lua/keybinds.lua +++ b/home/.config/nvim/lua/keybinds.lua @@ -9,6 +9,7 @@ end, { desc = "Toggle background between dark and light" }) vim.keymap.set("n", "h", "nohlsearch", { desc = "Turn off search highlight" }) vim.keymap.set("n", "co", 'silent! execute "%bd|e#|bd#"', { desc = "Close other buffers" }) +vim.keymap.set("n", "a", "e#", { desc = "Edit alternate file" }) vim.keymap.set("n", "", "bnext", { desc = "Next buffer" }) vim.keymap.set("n", "", "bprevious", { desc = "Previous buffer" }) vim.keymap.set("t", "", "", { desc = "Exit terminal insert mode with esc" })