docs: fix attempt to index nil opts in example (#1476)
This commit is contained in:
@@ -57,6 +57,7 @@ you will still need to have the previous requires section above this code.)
|
|||||||
```lua
|
```lua
|
||||||
-- our picker function: colors
|
-- our picker function: colors
|
||||||
local colors = function(opts)
|
local colors = function(opts)
|
||||||
|
opts = opts or {}
|
||||||
pickers.new(opts, {
|
pickers.new(opts, {
|
||||||
prompt_title = "colors",
|
prompt_title = "colors",
|
||||||
finder = finders.new_table {
|
finder = finders.new_table {
|
||||||
|
|||||||
Reference in New Issue
Block a user