From af5a5803109a3842ec12a3fcea3453292e863544 Mon Sep 17 00:00:00 2001 From: mroavi Date: Sat, 20 Nov 2021 14:46:16 +0100 Subject: [PATCH] docs: fix attempt to index nil `opts` in example (#1476) --- developers.md | 1 + 1 file changed, 1 insertion(+) diff --git a/developers.md b/developers.md index d027f660a9..3d3d0b2267 100644 --- a/developers.md +++ b/developers.md @@ -57,6 +57,7 @@ you will still need to have the previous requires section above this code.) ```lua -- our picker function: colors local colors = function(opts) + opts = opts or {} pickers.new(opts, { prompt_title = "colors", finder = finders.new_table {