Skip to content

Commit 6d25aab

Browse files
committed
chore(build): auto-generate vimdoc
1 parent 5747ce6 commit 6d25aab

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

doc/api.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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 },

doc/astroui.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,12 +978,14 @@ require("astroui.status").hl.file_icon("winbar") },
978978
FILETYPE_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

985985
Get 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 =

0 commit comments

Comments
 (0)