Closed charbelnicolas closed 1 month ago
file[_history]_panel.win_config
configures window options for the UI panels in diff views and history views, not the diff buffers or their windows.
To change local options for the diff buffer / windows, use the hooks. See the example under :h diffview-config-hooks
. You want to use the diff_buf_win_enter
hook for this.
I'll try using the hook then, thank you.
Description
I have the following config:
The fold column is still displayed instead of being hidden.
Expected behavior
I would expect the fold column to be hidden when using
win_opts = { foldcolumn = '0' }
Actual behavior
The fold column is still shown unless I manually change the
file.lua
underlua/diffview/vcs
tofoldcolumn = "0"
Steps to reproduce
Add
win_opts = { foldcolumn = '0' }
to the diffview setupHealth check
Log info
No response
Neovim version
Operating system and version
Linux 6.9.1-arch1-2 x86_64 GNU/Linux
Minimal config
No response