mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
feat(ui): added multiple options for diff command
This commit is contained in:
parent
8ad05feef1
commit
7d02da2ff0
6 changed files with 83 additions and 5 deletions
|
@ -109,7 +109,7 @@ function M.spawn(cmd, opts)
|
|||
end
|
||||
|
||||
---@param cmd string[]
|
||||
---@param opts? {cwd:string}
|
||||
---@param opts? {cwd:string, env:table}
|
||||
function M.exec(cmd, opts)
|
||||
opts = opts or {}
|
||||
---@type string[]
|
||||
|
@ -117,6 +117,7 @@ function M.exec(cmd, opts)
|
|||
local job = vim.fn.jobstart(cmd, {
|
||||
cwd = opts.cwd,
|
||||
pty = false,
|
||||
env = opts.env,
|
||||
stdout_buffered = true,
|
||||
on_stdout = function(_, _lines)
|
||||
lines = _lines
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue