Skip to content

Commit

Permalink
feat(util): LazyVim terminals can now be opened/reopened with a count
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jun 16, 2023
1 parent cbf1797 commit 41f515c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazyvim/util/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 41f515c

Please sign in to comment.