diff --git a/lua/astrocommunity/pack/jj/README.md b/lua/astrocommunity/pack/jj/README.md index eddcbb22d..94a710eab 100644 --- a/lua/astrocommunity/pack/jj/README.md +++ b/lua/astrocommunity/pack/jj/README.md @@ -1,6 +1,6 @@ # Jujutsu/jj Pack -Pack for the [Jujutsu/jj](https://github.com/martinvonz/jj) Git-compatible VCS. +Pack for the [Jujutsu/jj](https://github.com/jj-vcs/jj) Git-compatible VCS. This plugin pack does the following: @@ -10,4 +10,4 @@ This plugin pack does the following: - `jd` for files with changes, like `jj diff` - `jc` for files with conflicts, like `jj resolve --list` - Adds syntax highlighting for `.jjdescription` files (for use with `jj describe`) with [vim-jjdescription](https://github.com/avm99963/vim-jjdescription) -- Adds a [lazyjj](https://github.com/Cretezy/lazyjj) (TUI for jj) terminal with `jl` when `lazyjj` is in `$PATH` +- Adds a [lazyjj](https://github.com/Cretezy/lazyjj) and [jjui](https://github.com/idursun/jjui) (TUIs for jj) terminal with `jl` or `ju` respectively, if the corresponding binaries are in `$PATH` diff --git a/lua/astrocommunity/pack/jj/init.lua b/lua/astrocommunity/pack/jj/init.lua index e60e594ec..0fdcb142e 100644 --- a/lua/astrocommunity/pack/jj/init.lua +++ b/lua/astrocommunity/pack/jj/init.lua @@ -75,6 +75,16 @@ return { desc = "lazyjj", } end + + if vim.fn.executable "jjui" == 1 then + maps.n["ju"] = { + function() + local astro = require "astrocore" + astro.toggle_term_cmd "jjui" + end, + desc = "jjui", + } + end end, }, }