From 4f743cbe347ffaa7a788ee1c8c52cd953ec7a186 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Thu, 4 Jan 2024 01:46:51 +0100 Subject: [PATCH] feat(nvim): Add go back (`gb`) shortcut for previous buffer --- .config/nvim/lua/plugins/lsp-config.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/nvim/lua/plugins/lsp-config.lua b/.config/nvim/lua/plugins/lsp-config.lua index 9adae7a..c81b065 100644 --- a/.config/nvim/lua/plugins/lsp-config.lua +++ b/.config/nvim/lua/plugins/lsp-config.lua @@ -37,7 +37,8 @@ return { vim.keymap.set('n', 'K', vim.lsp.buf.hover, {}) vim.keymap.set('n', 'gd', vim.lsp.buf.definition, {}) - vim.keymap.set({'n', 'v'} , 'ca', vim.lsp.buf.code_action, {}) + vim.keymap.set({'n', 'v'}, 'ca', vim.lsp.buf.code_action, {}) + vim.keymap.set('n', 'gb', ":b#") end }, {