NTBBloodbath / galaxyline.nvim

neovim statusline plugin written in lua
MIT License
163 stars 16 forks source link

Add support for inline highlights #20

Open Zarainia opened 2 years ago

Zarainia commented 2 years ago

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?