diff --git a/dots/.config/nvim/lua/core/cmds.lua b/dots/.config/nvim/lua/core/cmds.lua index f274be22..25d40d0c 100644 --- a/dots/.config/nvim/lua/core/cmds.lua +++ b/dots/.config/nvim/lua/core/cmds.lua @@ -127,7 +127,7 @@ M.setup = function() vim.api.nvim_create_user_command("Z", function(opts) cached_z_listing = {} 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 vim.notify( "Failed with code `" .. cmd_out.code .. "`\nSTDERR: " .. (cmd_out.stderr or ""),