plugins/configs/bufferline: Use a more unique func name quit all, to avoid conflicts
format file
This commit is contained in:
parent
adf0168dcc
commit
780142b150
|
@ -5,11 +5,8 @@ if not present then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.cmd [[
|
-- function executed for top right close button in bufferline
|
||||||
function Quitvim(a,b,c,d)
|
vim.cmd "function! NvChad_bufferline_quitvim(a,b,c,d) \n qa \n endfunction"
|
||||||
q
|
|
||||||
endfunction
|
|
||||||
]]
|
|
||||||
|
|
||||||
bufferline.setup {
|
bufferline.setup {
|
||||||
options = {
|
options = {
|
||||||
|
@ -34,7 +31,10 @@ bufferline.setup {
|
||||||
custom_areas = {
|
custom_areas = {
|
||||||
right = function()
|
right = function()
|
||||||
local result = {}
|
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
|
return result
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue