mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-22 04:21:03 +00:00
focus...
This commit is contained in:
parent
dd1b970c01
commit
9bd7b4cb01
1 changed files with 7 additions and 2 deletions
|
|
@ -60,7 +60,12 @@ vim.keymap.set('n', '<leader>tt',
|
|||
vim.fn.setreg("+", "bundle exec rspec " .. vim.fn.expand("%"))
|
||||
local opts = { cwd = LazyVim.root(), interactive = true }
|
||||
local term, _ = Snacks.terminal.get(nil, opts)
|
||||
if term and term.closed == true then
|
||||
Snacks.terminal(nil, opts)
|
||||
|
||||
if term then
|
||||
if term.closed == true then
|
||||
Snacks.terminal(nil, opts)
|
||||
else
|
||||
term:focus()
|
||||
end
|
||||
end
|
||||
end, { silent = true, desc = "Toggle Test Terminal" })
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue