Compare commits
2 Commits
f5a72a09fc
...
6af13b9904
| Author | SHA1 | Date | |
|---|---|---|---|
| 6af13b9904 | |||
| 11f2de8e11 |
@@ -4,26 +4,27 @@ return {
|
||||
optional = true,
|
||||
opts = function(_, opts)
|
||||
local status = require("astroui.status")
|
||||
local comp = status.component
|
||||
|
||||
opts.statusline = {
|
||||
hl = { fg = "fg", bg = "bg" },
|
||||
status.component.mode({ mode_text = { hl = { bold = true }, padding = { left = 1, right = 1 } } }),
|
||||
status.component.file_info({
|
||||
comp.mode({ mode_text = { hl = { bold = true }, padding = { left = 1, right = 1 } } }),
|
||||
comp.file_info({
|
||||
filetype = false,
|
||||
filename = {
|
||||
modify = ":~:.",
|
||||
},
|
||||
file_modified = {},
|
||||
}),
|
||||
status.component.diagnostics(),
|
||||
status.component.fill(),
|
||||
status.component.cmd_info(),
|
||||
status.component.fill(),
|
||||
status.component.lsp(),
|
||||
status.component.treesitter({ padding = { right = 1 } }), -- Extra space to separate from next component
|
||||
status.component.git_diff(),
|
||||
status.component.git_branch(),
|
||||
status.component.nav({ scrollbar = false }),
|
||||
comp.diagnostics(),
|
||||
comp.fill(),
|
||||
comp.cmd_info(),
|
||||
comp.fill(),
|
||||
comp.lsp(),
|
||||
comp.treesitter({ padding = { right = 1 } }), -- Extra space to separate from next component
|
||||
comp.git_diff(),
|
||||
comp.git_branch(),
|
||||
comp.nav({ scrollbar = false }),
|
||||
}
|
||||
|
||||
local get_file_path = status.provider.filename({
|
||||
@@ -46,17 +47,17 @@ return {
|
||||
{
|
||||
-- Set display priority to hide when component is too big to fit
|
||||
flexible = 1,
|
||||
status.component.separated_path({
|
||||
comp.separated_path({
|
||||
flexible = 2,
|
||||
max_depth = 5,
|
||||
path_func = path_func,
|
||||
}),
|
||||
status.component.separated_path({
|
||||
comp.separated_path({
|
||||
flexible = 3,
|
||||
max_depth = 3,
|
||||
path_func = path_func,
|
||||
}),
|
||||
status.component.separated_path({
|
||||
comp.separated_path({
|
||||
flexible = 4,
|
||||
max_depth = 1,
|
||||
path_func = path_func,
|
||||
@@ -66,16 +67,18 @@ return {
|
||||
provider = "",
|
||||
},
|
||||
},
|
||||
status.component.file_info({
|
||||
comp.file_info({
|
||||
file_icon = { hl = status.hl.file_icon("winbar"), padding = { left = 0 } },
|
||||
file_modified = false,
|
||||
file_read_only = false,
|
||||
file_modified = {},
|
||||
file_read_only = {},
|
||||
filename = {},
|
||||
filetype = false,
|
||||
hl = status.hl.get_attributes("winbarnc", true),
|
||||
surround = false,
|
||||
update = "BufEnter",
|
||||
}),
|
||||
},
|
||||
status.component.breadcrumbs(),
|
||||
comp.breadcrumbs(),
|
||||
}
|
||||
|
||||
return opts
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
---@type LazySpec
|
||||
return {
|
||||
{ "echasnovski/mini.align", event = "User AstroFile", config = function() require("mini.align").setup({}) end },
|
||||
{ "tpope/vim-abolish", event = "User AstroFile" },
|
||||
{ "rcarriga/nvim-notify", dev = true }, -- Until upstream fix for v10
|
||||
{ "echasnovski/mini.align", event = "User AstroFile" },
|
||||
{ "tpope/vim-abolish", event = "User AstroFile" },
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user