feat(previewer): allow passing env to new_termopen_previewer (#3224)

* Allow passing env through term opts

* Add doc update
This commit is contained in:
MarcusGrass
2024-07-26 05:25:46 +02:00
committed by GitHub
parent 47ab113de5
commit 3264f0ae9d
2 changed files with 5 additions and 2 deletions

View File

@@ -202,7 +202,7 @@ previewers.new_termopen_previewer = function(opts)
local term_opts = {
cwd = opts.cwd or vim.loop.cwd(),
env = conf.set_env,
env = opts.env or conf.set_env,
}
local cmd = opts.get_command(entry, status)