From 915c32be7d87f31f60673a53796b489b6b382595 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sun, 24 Mar 2024 14:07:06 -0500 Subject: [PATCH] refactor(nvim): set `_ZL_MATCH_MODE = 1` for `Z` commands --- dots/.config/nvim/lua/core/cmds.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ""),