File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -314,19 +314,6 @@ M.live_grep = function(opts)
314314 end , opts )
315315end
316316
317- M .live_grep_glob = function (opts )
318- if vim .fn .executable (" rg" ) ~= 1 then
319- utils .warn (" '--glob|iglob' flags requires 'rg' (https://github.com/BurntSushi/ripgrep)" )
320- return
321- end
322-
323- -- 'rg_glob = true' enables the glob processing in
324- -- 'make_entry.preprocess', only supported with multiprocess
325- opts = opts or {}
326- opts .rg_glob = true
327- return M .live_grep (opts )
328- end
329-
330317M .live_grep_native = function (opts )
331318 -- backward compatibility, by setting git|files icons to false
332319 -- we force 'mt_cmd_wrapper' to pipe the command as is, so fzf
@@ -344,6 +331,25 @@ M.live_grep_native = function(opts)
344331 return M .live_grep (opts )
345332end
346333
334+ M .live_grep_glob = function (opts )
335+ vim .deprecate (
336+ [[ 'live_grep_glob']] ,
337+ [[ ':FzfLua live_grep' or ':lua FzfLua.live_grep()' (glob parsing enabled by default)]] ,
338+ " Jan 2026" , " FzfLua"
339+ )
340+ if vim .fn .executable (" rg" ) ~= 1 then
341+ utils .warn (" '--glob|iglob' flags requires 'rg' (https://github.com/BurntSushi/ripgrep)" )
342+ return
343+ end
344+
345+ -- 'rg_glob = true' enables the glob processing in
346+ -- 'make_entry.preprocess', only supported with multiprocess
347+ opts = opts or {}
348+ opts .rg_glob = true
349+ return M .live_grep (opts )
350+ end
351+
352+
347353M .live_grep_resume = function (opts )
348354 vim .deprecate (
349355 [[ 'live_grep_resume']] ,
Original file line number Diff line number Diff line change @@ -1413,7 +1413,7 @@ function M.termopen(cmd, opts)
14131413 if M .__HAS_NVIM_011 and M ._JOBSTART_HAS_TERM == nil then
14141414 local ok , err = pcall (vim .fn .jobstart , " " , { term = 1 })
14151415 M ._JOBSTART_HAS_TERM = not ok
1416- and err :match [[ Vim:E475: Invalid argument: 'term' must be Boolean]]
1416+ and err --[[ @as string ]] :match [[ Vim:E475: Invalid argument: 'term' must be Boolean]]
14171417 and true or false
14181418 end
14191419 if M .__HAS_NVIM_011 and M ._JOBSTART_HAS_TERM then
You can’t perform that action at this time.
0 commit comments