From e40ad7ba9b5fe8771c4c16234804dcd4af6f78f7 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 21 Feb 2022 19:54:49 +0100 Subject: [PATCH] feat: close buffers with leader-q --- lua/keymaps.lua | 3 +++ lua/plugins.lua | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/lua/keymaps.lua b/lua/keymaps.lua index feddd39..595fa8e 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -42,3 +42,6 @@ function _G.set_terminal_keymaps() end vim.cmd('autocmd! TermOpen term://* lua set_terminal_keymaps()') + +-- buffer closing +nnoremap("q", ":Bdelete") diff --git a/lua/plugins.lua b/lua/plugins.lua index 524c7ec..91ef091 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -141,6 +141,11 @@ return require('packer').startup(function(use) end, }) + -- buffer closing + use({ + "sar/bbye.nvim" + }) + if packer_bootstrap then require('packer').sync() end