add clickable btn for exiting nvim
This commit is contained in:
parent
80b632ee95
commit
8f733755e8
@ -5,12 +5,19 @@ if not present then
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
vim.cmd [[
|
||||||
|
function MyFunc(a,b,c,d)
|
||||||
|
q!
|
||||||
|
endfunction
|
||||||
|
]]
|
||||||
|
|
||||||
bufferline.setup {
|
bufferline.setup {
|
||||||
options = {
|
options = {
|
||||||
offsets = { { filetype = "NvimTree", text = "", padding = 1 } },
|
offsets = { { filetype = "NvimTree", text = "", padding = 1 } },
|
||||||
buffer_close_icon = "",
|
buffer_close_icon = "",
|
||||||
modified_icon = "",
|
modified_icon = "",
|
||||||
close_icon = "",
|
close_icon = "",
|
||||||
|
show_close_icon = false,
|
||||||
left_trunc_marker = "",
|
left_trunc_marker = "",
|
||||||
right_trunc_marker = "",
|
right_trunc_marker = "",
|
||||||
max_name_length = 14,
|
max_name_length = 14,
|
||||||
@ -23,6 +30,14 @@ bufferline.setup {
|
|||||||
separator_style = "thin",
|
separator_style = "thin",
|
||||||
always_show_bufferline = true,
|
always_show_bufferline = true,
|
||||||
diagnostics = false, -- "or nvim-lsp"
|
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)
|
custom_filter = function(buf_number)
|
||||||
-- Func to filter out our managed/persistent split terms
|
-- Func to filter out our managed/persistent split terms
|
||||||
local present_type, type = pcall(function()
|
local present_type, type = pcall(function()
|
||||||
@ -42,6 +57,7 @@ bufferline.setup {
|
|||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
highlights = {
|
highlights = {
|
||||||
background = {
|
background = {
|
||||||
guifg = colors.grey_fg,
|
guifg = colors.grey_fg,
|
||||||
|
Loading…
Reference in New Issue
Block a user