28 lines
981 B
Lua
28 lines
981 B
Lua
return {
|
|
"rebelot/heirline.nvim",
|
|
opts = function(_, opts)
|
|
local status = require "astroui.status"
|
|
opts.statusline[3] = status.component.file_info { filetype = {}, filename = false }
|
|
|
|
opts.winbar[1][1] = status.component.separated_path { path_func = status.provider.filename { modify = ":.:h" } }
|
|
opts.winbar[2] = {
|
|
status.component.separated_path { path_func = status.provider.filename { modify = ":.:h" } },
|
|
status.component.file_info { -- add file_info to breadcrumbs
|
|
file_icon = { hl = status.hl.filetype_color, padding = { left = 0 } },
|
|
file_modified = false,
|
|
file_read_only = false,
|
|
hl = status.hl.get_attributes("winbar", true),
|
|
surround = false,
|
|
update = "BufEnter",
|
|
},
|
|
status.component.breadcrumbs {
|
|
icon = { hl = true },
|
|
hl = status.hl.get_attributes("winbar", true),
|
|
prefix = true,
|
|
padding = { left = 0 },
|
|
},
|
|
}
|
|
return opts
|
|
end,
|
|
}
|