Skip to content

Commit 4e3c2db

Browse files
authored
feat(jj): Use float direction with lazyjj and jjui terminals (#1683)
Use float direction with lazyjj and jjui terminals This lets these tools use a float window instead of a small split at the bottom of the screen, and is how `lazygit` is currently used in AstroNvim: https://github.com/AstroNvim/AstroNvim/blob/0001b5adbd6b6b9c14166f5c5955c43fde5624de/lua/astronvim/plugins/toggleterm.lua#L18
1 parent 768fc89 commit 4e3c2db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/astrocommunity/pack/jj/init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ return {
8585
local astro = require "astrocore"
8686
local worktree = astro.file_worktree()
8787
local flags = worktree and ("--path '%s'"):format(worktree.toplevel, worktree.gitdir) or ""
88-
astro.toggle_term_cmd("lazyjj " .. flags)
88+
astro.toggle_term_cmd { cmd = "lazyjj " .. flags, direction = "float" }
8989
end,
9090
desc = "lazyjj",
9191
}
@@ -95,7 +95,7 @@ return {
9595
maps.n["<Leader>ju"] = {
9696
function()
9797
local astro = require "astrocore"
98-
astro.toggle_term_cmd "jjui"
98+
astro.toggle_term_cmd { cmd = "jjui", direction = "float" }
9999
end,
100100
desc = "jjui",
101101
}

0 commit comments

Comments
 (0)