File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -761,12 +761,14 @@ function astroui.status.hl.file_icon(name: string)
761761
762762
763763` ` ` lua
764- function astroui .status .hl .filetype_color (self : astroui.status.hl )
764+ function astroui .status .hl .filetype_color (self ?: { bufnr : integer } )
765765 -> table
766766```
767767
768768 Get the foreground color group for the current filetype
769769
770+ * param* ` self ` — component state that may hold the buffer number
771+
770772* return* — the highlight group for the current filetype foreground
771773
772774 @usage local heirline_component = { provider = require("astroui.status").provider.fileicon(), hl = require("astroui.status").hl.filetype_color },
Original file line number Diff line number Diff line change @@ -978,12 +978,14 @@ require("astroui.status").hl.file_icon("winbar") },
978978FILETYPE_COLOR ~
979979
980980>lua
981- function astroui.status.hl.filetype_color(self: astroui.status.hl )
981+ function astroui.status.hl.filetype_color(self?: { bufnr: integer } )
982982 -> table
983983<
984984
985985Get the foreground color group for the current filetype
986986
987+ _param_ `self ` — component state that may hold the buffer number
988+
987989_return_ — the highlight group for the current filetype foreground
988990
989991@usage local heirline_component = { provider =
You can’t perform that action at this time.
0 commit comments