From 41f515caae653b91a93f24f4811ebeccf3457766 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Fri, 16 Jun 2023 14:52:13 +0200 Subject: [PATCH] feat(util): LazyVim terminals can now be opened/reopened with a count --- lua/lazyvim/util/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazyvim/util/init.lua b/lua/lazyvim/util/init.lua index c42e0ab2..d08efab9 100644 --- a/lua/lazyvim/util/init.lua +++ b/lua/lazyvim/util/init.lua @@ -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()