Keep an eye on those revision descriptions.
Lua 67.8%
Nix 29.8%
Shell 0.3%
Other 2.2%
1 2 0

Clone this repository

https://tangled.org/bpavuk.neocities.org/jj-log.nvim
git@tangled.org:bpavuk.neocities.org/jj-log.nvim

For self-hosted knots, clone URLs may differ based on your setup.

README.md

jj-log.nvim#

Watch your revision messages.

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.

Example with NvChad#

-- NvChad statusbar configuration

-- ...things...
M.ui = {
  statusline = {
    enabled = true,
    theme = "default",
    separator_style = "block",
    order = { ..., "jj_msg", ... },

    modules = {
      jj_msg = function()
        local result = vim.b.jj_desc -- The variable you need

        if not result then
          return ""
        end

        return "%#St_JJ_Text# 󰜘 " .. result .. " "
      end,
    }
  }
}
-- ...things continue...

Setup#

Lazy

{
  'https://tangled.org/bpavuk.neocities.org/jj-log.nvim',
  opts = {},
}

I'll be happy to add other package manager instructions! Hit me up, open an issue, or send a PR