feat(util): LazyVim terminals can now be opened/reopened with a count
This commit is contained in:
@ -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()
|
||||||
|
Reference in New Issue
Block a user