···11+# `jj-log.nvim`
22+33+*Watch your revision messages.*
44+55+This plugin retrieves the latest revision description (commit message) from `jj` and lets you use it through a global variable. It's nice to see the description of what you are working on at the moment.
66+77+## Example with NvChad
88+99+```lua
1010+-- NvChad statusbar configuration
1111+1212+-- ...things...
1313+M.ui = {
1414+ statusline = {
1515+ enabled = true,
1616+ theme = "default",
1717+ separator_style = "block",
1818+ order = { ..., "jj_msg", ... },
1919+2020+ modules = {
2121+ jj_msg = function()
2222+ local result = vim.b.jj_desc -- The variable you need
2323+2424+ if not result then
2525+ return ""
2626+ end
2727+2828+ return "%#St_JJ_Text# " .. result .. " "
2929+ end,
3030+ }
3131+ }
3232+}
3333+-- ...things continue...
3434+3535+```
3636+3737+## Setup
3838+3939+**Lazy**
4040+```lua
4141+{
4242+ 'https://tangled.org/bpavuk.neocities.org/jj-log.nvim',
4343+ opts = {},
4444+}
4545+```
4646+4747+I'll be happy to add other package manager instructions! Hit me up, open an issue, or send a PR