refactor(nvim): set _ZL_MATCH_MODE = 1 for Z commands
All checks were successful
Check Formatting of Files / Check-Formatting (push) Successful in 53s

This commit is contained in:
Price Hiller 2024-03-24 14:07:06 -05:00
parent 6bea524df0
commit 915c32be7d
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -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 ""),