Closed ofseed closed 5 months ago
See opts.general, you can change opts.general.enable
to attach winbar to buffer in diff mode:
function(buf, win)
return not vim.api.nvim_win_get_config(win).zindex
and vim.bo[buf].buftype == ''
and vim.api.nvim_buf_get_name(buf) ~= ''
end
I didn't expect that the defaults specifically prevent it from being displayed in the diff. I would like to inquire, what is the rationale behind this design?
@ofseed It was (originally) intended to avoid exactly this case (winbar attaching to only one of the windows when multiple windows are in diff mode) but is now outdated. I will update the config and use a saner default function to determine whether we should attach dropbar to specific windows/buffers.
Description
By start Neovim with:
Only the right side will show dropbar.![image](https://github.com/Bekaboo/dropbar.nvim/assets/61115159/30ec97a9-7e3b-4bad-8c46-f7094050c465)
nvim version
NVIM v0.10.0-dev-2246+gf4b3636f2 Build type: Release LuaJIT 2.1.1706185428
dropbar.nvim version
9a8e498374276dd0281736c75b42098ef9fb5622
Operating system and version
Linux 5.15.133.1-microsoft-standard-WSL2 x86_64 GNU /Linux
Minimal config
Steps to reproduce
Same with the description.
Expected behavior
It should show dropbar on both sides of the window.
Actual behavior
dropbar only shows on the right side of the window.
Additional information
No response