From dce8aaa3bc9699d9f753a9c0467b388132290639 Mon Sep 17 00:00:00 2001 From: David Ibia Date: Mon, 26 Feb 2024 14:36:29 +0100 Subject: [PATCH] chore(bufferline.lua): remove bufferline configuration and key mappings for tab management to simplify and streamline the setup of the bufferline plugin chore(bufferline.lua): remove bufferline plugin configuration and dependencies to declutter the plugin setup and improve maintainability --- lua/absolute/after/bufferline.lua | 20 -------------------- lua/absolute/plugins/bufferline.lua | 8 -------- 2 files changed, 28 deletions(-) delete mode 100644 lua/absolute/after/bufferline.lua delete mode 100644 lua/absolute/plugins/bufferline.lua diff --git a/lua/absolute/after/bufferline.lua b/lua/absolute/after/bufferline.lua deleted file mode 100644 index faa0c4b..0000000 --- a/lua/absolute/after/bufferline.lua +++ /dev/null @@ -1,20 +0,0 @@ -require("bufferline").setup { - options = { - mode = "tabs", - separator_style = "slant", - } -} - -local opts = { noremap = true, silent = true } - -vim.api.nvim_set_keymap("n", "1", "BufferLineGoToBuffer 1", opts) -vim.api.nvim_set_keymap("n", "2", "BufferLineGoToBuffer 2", opts) -vim.api.nvim_set_keymap("n", "3", "BufferLineGoToBuffer 3", opts) -vim.api.nvim_set_keymap("n", "4", "BufferLineGoToBuffer 4", opts) - - --- I want to be to close the current tab with a single keypress -vim.api.nvim_set_keymap("n", "tc", "tabclose", opts) - --- I want to be able to create a new tab with a single keypress -vim.api.nvim_set_keymap("n", "tn", "tabnew", opts) diff --git a/lua/absolute/plugins/bufferline.lua b/lua/absolute/plugins/bufferline.lua deleted file mode 100644 index 4ff64ec..0000000 --- a/lua/absolute/plugins/bufferline.lua +++ /dev/null @@ -1,8 +0,0 @@ -return { - "akinsho/bufferline.nvim", - dependencies = { "nvim-tree/nvim-web-devicons" }, - version = "*", - config = function() - require("absolute.after.bufferline") - end -}