Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lua/astrocommunity/pack/jj/README.md
Original file line number Diff line number Diff line change
@@ -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:

Expand All @@ -10,4 +10,4 @@ This plugin pack does the following:
- `<Leader>jd` for files with changes, like `jj diff`
- `<Leader>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 `<Leader>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 `<Leader>jl` or `<Leader>ju` respectively, if the corresponding binaries are in `$PATH`
10 changes: 10 additions & 0 deletions lua/astrocommunity/pack/jj/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,16 @@ return {
desc = "lazyjj",
}
end

if vim.fn.executable "jjui" == 1 then
maps.n["<Leader>ju"] = {
function()
local astro = require "astrocore"
astro.toggle_term_cmd "jjui"
end,
desc = "jjui",
}
end
end,
},
}