refactor(nvim): set _ZL_MATCH_MODE = 1
for Z
commands
All checks were successful
Check Formatting of Files / Check-Formatting (push) Successful in 53s
All checks were successful
Check Formatting of Files / Check-Formatting (push) Successful in 53s
This commit is contained in:
parent
6bea524df0
commit
915c32be7d
@ -127,7 +127,7 @@ M.setup = function()
|
|||||||
vim.api.nvim_create_user_command("Z", function(opts)
|
vim.api.nvim_create_user_command("Z", function(opts)
|
||||||
cached_z_listing = {}
|
cached_z_listing = {}
|
||||||
local cmd = { "lua", z_lua_path, "-e", opts.args }
|
local cmd = { "lua", z_lua_path, "-e", opts.args }
|
||||||
local cmd_out = vim.system(cmd, { text = true }):wait()
|
local cmd_out = vim.system(cmd, { text = true, env = { _ZL_MATCH_MODE = "1" } }):wait()
|
||||||
if cmd_out.code > 0 then
|
if cmd_out.code > 0 then
|
||||||
vim.notify(
|
vim.notify(
|
||||||
"Failed with code `" .. cmd_out.code .. "`\nSTDERR: " .. (cmd_out.stderr or ""),
|
"Failed with code `" .. cmd_out.code .. "`\nSTDERR: " .. (cmd_out.stderr or ""),
|
||||||
|
Loading…
Reference in New Issue
Block a user