Sometimes a provider needs to dynamically generate a section with multiple different highlights, making it impractical to stick to one highlight per section. As well, allowing this allows the number of sections to be reduced. Per https://github.com/glepnir/galaxyline.nvim/issues/130#issuecomment-841696740, using %{%expr%} to call the provider function seems to fix this. This change is working for me locally, with the one issue that certain % in providers get messed up (notably the file percent provider). Not sure how to handle that, maybe make it optional?
Sometimes a provider needs to dynamically generate a section with multiple different highlights, making it impractical to stick to one highlight per section. As well, allowing this allows the number of sections to be reduced. Per https://github.com/glepnir/galaxyline.nvim/issues/130#issuecomment-841696740, using
%{%expr%}
to call the provider function seems to fix this. This change is working for me locally, with the one issue that certain%
in providers get messed up (notably the file percent provider). Not sure how to handle that, maybe make it optional?