-
-
Notifications
You must be signed in to change notification settings - Fork 17
Winbar
windwp edited this page Jun 5, 2022
·
5 revisions
just create a new statusline with file types winbar then add that to a setup function
local windline = require('windline')
local winbar = {
filetypes = { 'winbar' },
active = {
{ ' ' },
{ '%=' },
{
'@@',
{ 'red', 'white' },
},
},
inactive = {
{ ' ', { 'white', 'InactiveBg' } },
{ '%=' },
{
function(bufnr)
local bufname = vim.api.nvim_buf_get_name(bufnr)
local path = vim.fn.fnamemodify(bufname, ':~:.')
return path
end,
{ 'white', 'InactiveBg' },
},
},
--- enable=function(bufnr,winid) return true end --a function to disable winbar on some window or filetype
}
windline.add_status(winbar)
-- or you can use a setup function to add winbar