docs: fix attempt to index nil opts in example (#1476)

This commit is contained in:
mroavi
2021-11-20 14:46:16 +01:00
committed by GitHub
parent 7493f51700
commit af5a580310

View File

@@ -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 {