Open tmillr opened 3 months ago
Idk why (it fires on TabEnter), but I guess adding DiffviewDiffBufWinEnter
to the events of my autocmd helps as a workaround.
This also doesn't work:
nvim --clean +"lua require('diffview').setup { commit_log_panel = { win_config = { winopts = { winblend = 10, } } } }"
Description
Leaving and coming back to the diffview tab, or simply just revisiting one of the diffs (buffers), resets/clobbers all of my
winhl
customizations. Is there any reason why this plugin is dynamically changing/resetting options onTabLeave
, or, when revisiting a previously-viewed buffer (especially given the fact that the window ids remain the same)? This is silly and unexpected behavior imo. How else can I customizewinhl
? Right now I'm using aDiffviewDiffBufRead
autocmd (because setting win opts or config via this plugin seems to be only supported for "panels"?).I guess in the meantime I need to choose a different autocmd, or force my highlights with a window namespace.
Expected behavior
winhl
or any other list-like options that this plugin sets (you need to share, or allow me a way to accomplish this via other means, lol).Actual behavior
See Description
Steps to reproduce
Health check
Likely irrelevant, but here it is:
Log info
n/a
Neovim version
Operating system and version
macOS 14.2.1
Minimal config
Maybe related to: #457, #442