From d41487a0b1031f811efcba069a299768419cee02 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Sat, 9 Sep 2023 04:26:49 +0200 Subject: [PATCH] Remove bufferline --- lua/plugin/config/bufferline.lua | 66 -------------------------------- lua/plugin/init.lua | 6 --- 2 files changed, 72 deletions(-) delete mode 100644 lua/plugin/config/bufferline.lua diff --git a/lua/plugin/config/bufferline.lua b/lua/plugin/config/bufferline.lua deleted file mode 100644 index 428bbff..0000000 --- a/lua/plugin/config/bufferline.lua +++ /dev/null @@ -1,66 +0,0 @@ ---[[ - Copyright 2023 Oscar Wallberg - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -]] - --- https://github.com/akinsho/bufferline.nvim - ---- Define what filetypes should be ignored by bufferline. ---- Filetypes not listed are enabled by default. -local ft_map = { - NvimTree = false, - fugitive = false, -} - -local bufferline = require("bufferline") -bufferline.setup({ - options = { - close_command = "Bwipeout %d", - right_mouse_command = nil, - middle_mouse_command = "Bwipeout %d", - diagnostics = "nvim_lsp", - diagnostics_update_in_insert = false, - custom_filter = function (buf, _) - local buf_ft = vim.bo[buf].filetype - - if ft_map[buf_ft] == nil then - ft_map[buf_ft] = true -- enable by default - end - - return ft_map[buf_ft] - end, - style_preset = bufferline.style_preset.no_italic, - offsets = { - { - filetype = "NvimTree", - text = "File Explorer", - text_align = "center", - seperator = true, - }, - { - filetype = "fugitive", - text = "Fugitive", - text_align = "center", - seperator = true, - }, - { - filetype = "aerial", - text = "Aerial", - text_align = "center", - seperator = true, - }, - }, - sort_by = "id", - }, -}) diff --git a/lua/plugin/init.lua b/lua/plugin/init.lua index 0542dd1..6e1bf5a 100644 --- a/lua/plugin/init.lua +++ b/lua/plugin/init.lua @@ -118,12 +118,6 @@ local plugins = { lazy = true, event = "VimEnter", }, - { - "akinsho/bufferline.nvim", - config = function () require("plugin.config.bufferline") end, - lazy = true, - event = "VimEnter", - }, { "nvim-lua/plenary.nvim", },