refactor(forge): remove %l eol specifier, add auto_close config, fix icons

Problem: `%l` was dead code after inline overlays replaced EOL
rendering. Auto-close was always on with no opt-out. Forge icon
defaults were empty strings.

Solution: remove `%l` from the eol format parser and renderer. Add
`forge.auto_close` (default `false`) to gate state-pull. Set nerd
font icons: `` (GitHub), `` (GitLab), `` (Codeberg). Keep
conceal active in insert mode via `concealcursor = 'nic'`.
This commit is contained in:
Barrett Ruth 2026-03-10 19:54:42 -04:00
parent e764b34ecb
commit 36898898a7
5 changed files with 22 additions and 23 deletions

View file

@ -396,8 +396,10 @@ function M.refresh(s)
if cache then
task._extra._forge_cache = cache
any_fetched = true
local forge_cfg = config.get().forge or {}
if
(cache.state == 'closed' or cache.state == 'merged')
forge_cfg.auto_close
and (cache.state == 'closed' or cache.state == 'merged')
and (task.status == 'pending' or task.status == 'wip' or task.status == 'blocked')
then
task.status = 'done'