mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
This commit is contained in:
parent
2c2ff4caf8
commit
233356e6c9
1 changed files with 12 additions and 0 deletions
|
@ -1888,6 +1888,12 @@ Get the current item at the cursor
|
|||
picker:current(opts)
|
||||
```
|
||||
|
||||
### `picker:cwd()`
|
||||
|
||||
```lua
|
||||
picker:cwd()
|
||||
```
|
||||
|
||||
### `picker:empty()`
|
||||
|
||||
Check if the picker is empty
|
||||
|
@ -1994,6 +2000,12 @@ If `fallback=true` and there is no selection, return the current item.
|
|||
picker:selected(opts)
|
||||
```
|
||||
|
||||
### `picker:set_cwd()`
|
||||
|
||||
```lua
|
||||
picker:set_cwd(cwd)
|
||||
```
|
||||
|
||||
### `picker:set_layout()`
|
||||
|
||||
Set the picker layout. Can be either the name of a preset layout
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue