Skip to content

feat(neojj): add neojj (jujutsu) integration#187

Merged
barrettruth merged 1 commit intomainfrom
feat/neojj
Mar 11, 2026
Merged

feat(neojj): add neojj (jujutsu) integration#187
barrettruth merged 1 commit intomainfrom
feat/neojj

Conversation

@barrettruth
Copy link
Owner

Problem

diffs.nvim has no support for neojj, the neogit-like TUI for jujutsu VCS. Users switching from git to jj get no syntax highlighting in neojj status/diff buffers.

Solution

Mirror the existing neogit integration pattern. Register NeojjStatus, NeojjCommitView, NeojjDiffView filetypes, set vim.b.neojj_disable_hunk_highlight on attach, listen for User NeojjDiffLoaded events, and detect jj repo root via neojj.lib.jj.repo.worktree_root. Add parser patterns for neojj's added, updated, changed, and unmerged filename labels.

Problem: diffs.nvim has no support for neojj, the neogit-like TUI for
jujutsu VCS. Users switching to jj get no syntax highlighting in neojj
status/diff buffers.

Solution: Mirror the existing neogit integration pattern for neojj.
Register `NeojjStatus`, `NeojjCommitView`, `NeojjDiffView` filetypes,
set `vim.b.neojj_disable_hunk_highlight` on attach, listen for
`User NeojjDiffLoaded` events, and detect jj repo root via
`neojj.lib.jj.repo.worktree_root`. Add parser patterns for neojj's
`added`, `updated`, `changed`, and `unmerged` filename labels.
@barrettruth barrettruth merged commit 0451445 into main Mar 11, 2026
7 checks passed
@barrettruth barrettruth deleted the feat/neojj branch March 11, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant