From 2a83b122e0450ced99508a4bb92122b491637a7e Mon Sep 17 00:00:00 2001 From: Naz Date: Sat, 8 Feb 2025 10:12:10 +0100 Subject: =?UTF-8?q?=E2=9C=A8feat:=20add=20akinsho/bufferline.nvim=20plugin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/config/mappings.lua | 5 +++++ lua/plugins/bufferline.lua | 12 ++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 lua/plugins/bufferline.lua diff --git a/lua/config/mappings.lua b/lua/config/mappings.lua index 27fc506..a203a65 100644 --- a/lua/config/mappings.lua +++ b/lua/config/mappings.lua @@ -14,3 +14,8 @@ vim.api.nvim_set_keymap( { noremap = true, silent = true, desc = "Split Down" } ) vim.api.nvim_set_keymap("n", "", ":noh", { noremap = true, silent = true, desc = "Clear Search" }) + + +-- bufferline keymaps + +vim.api.nvim_set_keymap("n", "C", ":BufferLineCloseOthers", { noremap = true, silent = true, desc = "Close Other Buffers" }) diff --git a/lua/plugins/bufferline.lua b/lua/plugins/bufferline.lua new file mode 100644 index 0000000..718dae4 --- /dev/null +++ b/lua/plugins/bufferline.lua @@ -0,0 +1,12 @@ +return { + "akinsho/bufferline.nvim", + version = "*", + dependencies = "nvim-tree/nvim-web-devicons", + config = function () + require("bufferline").setup { + options = { + mode = 'buffers', + } + } + end +} -- cgit v1.2.3