canola.nvim/lua
Barrett Ruth d8ff76685a
fix(view): reapply column highlights after paste and buffer edits (#169)
* fix(view): reapply column highlights after paste and buffer edits

Problem: Column extmarks (icon color, per-character permissions) are
applied via `util.set_highlights` only during `render_buffer`. Neovim
does not duplicate extmarks on yank/paste, so lines inserted via `yyp`
or `p` render without any column highlights.

Solution: Store `col_width` and `col_align` in `session[bufnr]` after
each render. Add `M.reapply_highlights` which re-parses all buffer
lines, reconstructs the column chunk table, and re-applies extmarks via
`util.set_highlights`. Wire it to a `TextChanged` autocmd (guarded by
`_rendering[bufnr]` to skip oil's own `nvim_buf_set_lines` calls).

* fix(view): resolve LuaLS warnings in `reapply_highlights`
2026-03-18 00:18:11 -04:00
..
oil fix(view): reapply column highlights after paste and buffer edits (#169) 2026-03-18 00:18:11 -04:00
resession/extensions refactor: revert canola namespace to oil and remove vim.g config (#120) 2026-03-10 22:49:56 -04:00