From 780142b1504f8ad311b23557e198c859c324bd7f Mon Sep 17 00:00:00 2001 From: Akianonymus Date: Thu, 26 Aug 2021 17:11:42 +0530 Subject: [PATCH] plugins/configs/bufferline: Use a more unique func name quit all, to avoid conflicts format file --- lua/plugins/configs/bufferline.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lua/plugins/configs/bufferline.lua b/lua/plugins/configs/bufferline.lua index f47846a..3a93953 100644 --- a/lua/plugins/configs/bufferline.lua +++ b/lua/plugins/configs/bufferline.lua @@ -5,11 +5,8 @@ if not present then return end -vim.cmd [[ - function Quitvim(a,b,c,d) - q - endfunction -]] +-- function executed for top right close button in bufferline +vim.cmd "function! NvChad_bufferline_quitvim(a,b,c,d) \n qa \n endfunction" bufferline.setup { options = { @@ -34,7 +31,10 @@ bufferline.setup { custom_areas = { right = function() local result = {} - table.insert(result, { text = "%@Quitvim@  %X", guifg = colors.red, guibg = colors.black }) + table.insert( + result, + { text = "%@NvChad_bufferline_quitvim@  %X", guifg = colors.red, guibg = colors.black } + ) return result end, },