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