My neovim config
This commit is contained in:
27
lua/plugins/heirline.lua
Normal file
27
lua/plugins/heirline.lua
Normal file
@@ -0,0 +1,27 @@
|
||||
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,
|
||||
}
|
||||
Reference in New Issue
Block a user