doc: more and better type annotations
This commit is contained in:
parent
d10e7f442f
commit
1fe476daf0
9 changed files with 167 additions and 50 deletions
|
|
@ -73,9 +73,9 @@ require("oil").set_sort({ { "type", "asc" }, { "size", "desc" } })
|
|||
`set_is_hidden_file(is_hidden_file)` \
|
||||
Change how oil determines if the file is hidden
|
||||
|
||||
| Param | Type | Desc |
|
||||
| -------------- | ----------------------------------------------------- | -------------------------------------------- |
|
||||
| is_hidden_file | `fun(filename: string, bufnr: nil\|integer): boolean` | Return true if the file/dir should be hidden |
|
||||
| Param | Type | Desc |
|
||||
| -------------- | ------------------------------------------------ | -------------------------------------------- |
|
||||
| is_hidden_file | `fun(filename: string, bufnr: integer): boolean` | Return true if the file/dir should be hidden |
|
||||
|
||||
## toggle_hidden()
|
||||
|
||||
|
|
|
|||
|
|
@ -270,8 +270,8 @@ set_is_hidden_file({is_hidden_file}) *oil.set_is_hidden_fil
|
|||
Change how oil determines if the file is hidden
|
||||
|
||||
Parameters:
|
||||
{is_hidden_file} `fun(filename: string, bufnr: nil|integer): boolean` Retu
|
||||
rn true if the file/dir should be hidden
|
||||
{is_hidden_file} `fun(filename: string, bufnr: integer): boolean` Return
|
||||
true if the file/dir should be hidden
|
||||
|
||||
toggle_hidden() *oil.toggle_hidden*
|
||||
Toggle hidden files and directories
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue