feat(util): LazyVim terminals can now be opened/reopened with a count

This commit is contained in:
Folke Lemaitre
2023-06-16 14:52:13 +02:00
parent cbf1797f4c
commit 41f515caae

View File

@ -136,7 +136,7 @@ function M.float_term(cmd, opts)
}, opts or {}, { persistent = true })
---@cast opts LazyCmdOptions|{interactive?:boolean, esc_esc?:false}
local termkey = vim.inspect({ cmd = cmd or "shell", cwd = opts.cwd, env = opts.env })
local termkey = vim.inspect({ cmd = cmd or "shell", cwd = opts.cwd, env = opts.env, count = vim.v.count1 })
if terminals[termkey] and terminals[termkey]:buf_valid() then
terminals[termkey]:toggle()