add clickable btn for exiting nvim

navigator
siduck76 3 years ago
parent 80b632ee95
commit 8f733755e8

@ -5,12 +5,19 @@ if not present then
return
end
vim.cmd [[
function MyFunc(a,b,c,d)
q!
endfunction
]]
bufferline.setup {
options = {
offsets = { { filetype = "NvimTree", text = "", padding = 1 } },
buffer_close_icon = "",
modified_icon = "",
close_icon = "",
show_close_icon = false,
left_trunc_marker = "",
right_trunc_marker = "",
max_name_length = 14,
@ -23,6 +30,14 @@ bufferline.setup {
separator_style = "thin",
always_show_bufferline = true,
diagnostics = false, -- "or nvim-lsp"
custom_areas = {
right = function()
local result = {}
table.insert(result, { text = "%@MyFunc@  %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()
@ -42,6 +57,7 @@ bufferline.setup {
end
end,
},
highlights = {
background = {
guifg = colors.grey_fg,

Loading…
Cancel
Save