mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
chore(build): auto-generate docs
This commit is contained in:
parent
c9f494bd9a
commit
a49ad1dcde
1 changed files with 12 additions and 0 deletions
12
docs/util.md
12
docs/util.md
|
@ -74,6 +74,18 @@ Check if the colorscheme is transparent.
|
|||
Snacks.util.is_transparent()
|
||||
```
|
||||
|
||||
### `Snacks.util.on_module()`
|
||||
|
||||
Call a function when a module is loaded.
|
||||
The callback is called immediately if the module is already loaded.
|
||||
Otherwise, it is called when the module is loaded.
|
||||
|
||||
```lua
|
||||
---@param modname string
|
||||
---@param cb fun(modname:string)
|
||||
Snacks.util.on_module(modname, cb)
|
||||
```
|
||||
|
||||
### `Snacks.util.redraw()`
|
||||
|
||||
Redraw the window.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue