@@ -61,11 +61,11 @@ local function msgLoadingPopup(msg, cmd, complete_fn)
6161 line = row ,
6262 width = width ,
6363 })
64- vim .api .nvim_win_set_option ( prompt_win , " winhl" , " Normal:TelescopeNormal" )
65- vim .api .nvim_win_set_option ( prompt_win , " winblend" , 0 )
64+ vim .api .nvim_set_option_value ( " winhl" , " Normal:TelescopeNormal" , { win = prompt_win } )
65+ vim .api .nvim_set_option_value ( " winblend" , 0 , { win = prompt_win } )
6666 local prompt_border_win = prompt_opts .border and prompt_opts .border .win_id
6767 if prompt_border_win then
68- vim .api .nvim_win_set_option ( prompt_border_win , " winhl" , " Normal:TelescopePromptBorder" )
68+ vim .api .nvim_set_option_value ( " winhl" , " Normal:TelescopePromptBorder" , { win = prompt_border_win } )
6969 end
7070 vim .defer_fn (
7171 vim .schedule_wrap (function ()
@@ -84,7 +84,7 @@ B.gh_issues = function(opts)
8484 opts = opts or {}
8585 opts .limit = opts .limit or 100
8686 local opts_query = parse_opts (opts , " issue" )
87- local cmd = vim .tbl_flatten { " gh" , " issue" , " list" , opts_query }
87+ local cmd = vim .iter ( { " gh" , " issue" , " list" , opts_query }): flatten (): totable ()
8888 local title = " Issues"
8989 msgLoadingPopup (" Loading " .. title , cmd , function (results )
9090 if results [1 ] == " " then
@@ -123,7 +123,7 @@ B.gh_pull_request = function(opts)
123123 opts = opts or {}
124124 opts .limit = opts .limit or 100
125125 local opts_query = parse_opts (opts , " pr" )
126- local cmd = vim .tbl_flatten { " gh" , " pr" , " list" , opts_query }
126+ local cmd = vim .iter ( { " gh" , " pr" , " list" , opts_query }): flatten (): totable ()
127127 local title = " Pull Requests"
128128 msgLoadingPopup (" Loading " .. title , cmd , function (results )
129129 if results [1 ] == " " then
@@ -196,7 +196,7 @@ B.gh_gist = function(opts)
196196 opts .limit = opts .limit or 100
197197 local opts_query = parse_opts (opts , " gist" )
198198 local title = " Gist"
199- local cmd = vim .tbl_flatten { " gh" , " gist" , " list" , opts_query }
199+ local cmd = vim .iter ( { " gh" , " gist" , " list" , opts_query }): flatten (): totable ()
200200 msgLoadingPopup (" Loading " .. title , cmd , function (results )
201201 if results [1 ] == " " then
202202 print (" Empty " .. title )
@@ -228,7 +228,7 @@ B.gh_secret = function(opts)
228228 opts = opts or {}
229229 local opts_query = parse_opts (opts , " secret" )
230230 local title = " Secret"
231- local cmd = vim .tbl_flatten { " gh" , " secret" , " list" , opts_query }
231+ local cmd = vim .iter ( { " gh" , " secret" , " list" , opts_query }): flatten (): totable ()
232232 msgLoadingPopup (" Loading " .. title , cmd , function (results )
233233 if results [1 ] == " " then
234234 print (" Empty " .. title )
@@ -269,7 +269,7 @@ B.gh_run = function(opts)
269269 opts .cleanmeta = true
270270 end
271271 local opts_query = parse_opts (opts , " run" )
272- local cmd = vim .tbl_flatten { " gh" , " run" , " list" , opts_query }
272+ local cmd = vim .iter ( { " gh" , " run" , " list" , opts_query }): flatten (): totable ()
273273 local title = " Workflow runs"
274274 msgLoadingPopup (" Loading " .. title , cmd , function (results )
275275 if results [1 ] == " " then
0 commit comments