|
71 | 71 |
|
72 | 72 | ---@class AstroUIProviderFiletypeOpts: AstroUIStatusStylizeOpts |
73 | 73 |
|
| 74 | +---@class AstroUIProviderBufnrOpts: AstroUIStatusStylizeOpts |
| 75 | +---@field suffix string? string to append after the buffer number |
| 76 | + |
74 | 77 | ---@class AstroUIProviderFilenameOpts: AstroUIStatusStylizeOpts |
75 | 78 | ---@field fname (fun(bufnr: integer): string)? function for calculating the buffer name |
76 | 79 | ---@field modify string? modifiers to pass to `fnamemodify` on final path |
|
133 | 136 | ---@field scrollbar AstroUIProviderScrollbarOpts? default options for the `scrollbar` provider |
134 | 137 | ---@field close_button AstroUIProviderCloseButtonOpts? default options for the `close_button` provider |
135 | 138 | ---@field filetype AstroUIProviderFiletypeOpts? default options for the `filetype` provider |
| 139 | +---@field bufnr AstroUIProviderBufnrOpts? default options for the `bufnr` provider |
136 | 140 | ---@field filename AstroUIProviderFilenameOpts? default options for the `filename` provider |
137 | 141 | ---@field file_encoding AstroUIProviderFileEncodingOpts? default options for the `file_encoding` provider |
138 | 142 | ---@field file_format AstroUIProviderFileFormatOpts? default options for the `file_format` provider |
@@ -379,6 +383,7 @@ return { |
379 | 383 | hl = function(self) return require("astroui.status.hl").file_icon "statusline"(self) end, |
380 | 384 | padding = { left = 1, right = 1 }, |
381 | 385 | }, |
| 386 | + bufnr = false, |
382 | 387 | filename = false, |
383 | 388 | filetype = {}, |
384 | 389 | file_modified = { |
@@ -715,6 +720,7 @@ return { |
715 | 720 | ruler = { pad_ruler = { line = 3, char = 2 } }, |
716 | 721 | scrollbar = { chars = { "▁", "▂", "▃", "▄", "▅", "▆", "▇", "█" } }, |
717 | 722 | close_button = { kind = "BufferClose" }, |
| 723 | + bufnr = { suffix = "." }, |
718 | 724 | filename = { |
719 | 725 | fallback = "Untitled", |
720 | 726 | fname = function(bufnr) return vim.api.nvim_buf_get_name(bufnr) end, |
|
0 commit comments