mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-23 09:18:51 +02:00
feat(util): LazyVim terminals can now be opened/reopened with a count
This commit is contained in:
parent
cbf1797f4c
commit
41f515caae
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ function M.float_term(cmd, opts)
|
||||||
}, opts or {}, { persistent = true })
|
}, opts or {}, { persistent = true })
|
||||||
---@cast opts LazyCmdOptions|{interactive?:boolean, esc_esc?:false}
|
---@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
|
if terminals[termkey] and terminals[termkey]:buf_valid() then
|
||||||
terminals[termkey]:toggle()
|
terminals[termkey]:toggle()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue