mirror of
https://github.com/L3MON4D3/LuaSnip
synced 2024-09-16 21:54:03 +02:00
Auto generate docs
This commit is contained in:
parent
2405e700ff
commit
4f7657157d
1 changed files with 4 additions and 1 deletions
|
@ -2264,9 +2264,12 @@ can be quickly edited via
|
|||
When called, it will open a `vim.ui.select`-dialog to select first a filetype,
|
||||
and then (if there are multiple) the associated file to edit.
|
||||
|
||||
`opts` contains three settings:
|
||||
`opts` contains four settings:
|
||||
|
||||
|
||||
- `ft_filter`: `fn(filetype:string) -> bool` Optionally filter initially listed
|
||||
filetypes. `true` -> filetype will be listed, `false` -> not listed. Accepts
|
||||
all filetypes by default.
|
||||
- `format`: `fn(file:string, source_name:string) -> string|nil` `file` is simply
|
||||
the path to the file, `source_name` is one of `"lua"`, `"snipmate"` or
|
||||
`"vscode"`. If a string is returned, it is used as the title of the item, `nil`
|
||||
|
|
Loading…
Reference in a new issue