From 6b31861aeb6bcf9a08926ba0c68b5b6aa574e734 Mon Sep 17 00:00:00 2001 From: siduck76 Date: Fri, 27 Aug 2021 16:00:44 +0530 Subject: [PATCH] remove custom area from bufferline --- lua/plugins/configs/bufferline.lua | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/lua/plugins/configs/bufferline.lua b/lua/plugins/configs/bufferline.lua index 8a15943..5a91cc3 100644 --- a/lua/plugins/configs/bufferline.lua +++ b/lua/plugins/configs/bufferline.lua @@ -13,8 +13,8 @@ bufferline.setup { offsets = { { filetype = "NvimTree", text = "", padding = 1 } }, buffer_close_icon = "", modified_icon = "", - close_icon = "", - show_close_icon = false, + close_icon = "%@NvChad_bufferline_quitvim@%X", + show_close_icon = true, left_trunc_marker = "", right_trunc_marker = "", max_name_length = 14, @@ -27,17 +27,6 @@ bufferline.setup { separator_style = "thin", always_show_bufferline = true, diagnostics = false, -- "or nvim_lsp" - - custom_areas = { - right = function() - local result = {} - table.insert( - result, - { text = "%@NvChad_bufferline_quitvim@  %X", guifg = colors.red, guibg = colors.black } - ) - return result - end, - }, custom_filter = function(buf_number) -- Func to filter out our managed/persistent split terms local present_type, type = pcall(function()