Skip to content

Commit 219e54c

Browse files
authored
feat(jj): add jjui to the jj pack (#1546)
* feat(jj): add jjui to the jj pack * lua formatting * Update README.md
1 parent 27e9c1f commit 219e54c

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Jujutsu/jj Pack
22

3-
Pack for the [Jujutsu/jj](https://github.com/martinvonz/jj) Git-compatible VCS.
3+
Pack for the [Jujutsu/jj](https://github.com/jj-vcs/jj) Git-compatible VCS.
44

55
This plugin pack does the following:
66

@@ -10,4 +10,4 @@ This plugin pack does the following:
1010
- `<Leader>jd` for files with changes, like `jj diff`
1111
- `<Leader>jc` for files with conflicts, like `jj resolve --list`
1212
- Adds syntax highlighting for `.jjdescription` files (for use with `jj describe`) with [vim-jjdescription](https://github.com/avm99963/vim-jjdescription)
13-
- Adds a [lazyjj](https://github.com/Cretezy/lazyjj) (TUI for jj) terminal with `<Leader>jl` when `lazyjj` is in `$PATH`
13+
- Adds a [lazyjj](https://github.com/Cretezy/lazyjj) and [jjui](https://github.com/idursun/jjui) (TUIs for jj) terminal with `<Leader>jl` or `<Leader>ju` respectively, if the corresponding binaries are in `$PATH`

lua/astrocommunity/pack/jj/init.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,16 @@ return {
7575
desc = "lazyjj",
7676
}
7777
end
78+
79+
if vim.fn.executable "jjui" == 1 then
80+
maps.n["<Leader>ju"] = {
81+
function()
82+
local astro = require "astrocore"
83+
astro.toggle_term_cmd "jjui"
84+
end,
85+
desc = "jjui",
86+
}
87+
end
7888
end,
7989
},
8090
}

0 commit comments

Comments
 (0)