nvimdev / dashboard-nvim

vim dashboard
MIT License
2.39k stars 192 forks source link

Fix `opts.hide.winbar` #469

Closed ernstwi closed 4 months ago

ernstwi commented 4 months ago

Issue: opts.hide.winbar doesn't work

Seems like a buffer-local value of winbar = '' doesn't override a global non-empty winbar value. To see this:

nvim --clean
set winbar=foo
split
setlocal winbar=

This PR changes opts.hide.winbar to use save_user_options/set_ui_options/restore_user_options.