Open gbroques opened 11 months ago
hi @gbroques, also please pay attention that default 'lsp-progress' will handle the escaping of '%' char, e.g. double the '%'.
these two lines will transfer '%' to '%%'. also see related discuss why I am doing it: https://github.com/linrongbin16/lsp-progress.nvim/issues/98
heirline could have different behavior from lualine.
also it's super welcome if you could submit PR to give people a sample, share how you integrate lsp-progress with heirline.
hi @gbroques, also please pay attention that default 'lsp-progress' will handle the escaping of '%' char, e.g. double the '%'.
these two lines will transfer '%' to '%%'. also see related discuss why I am doing it: linrongbin16/lsp-progress.nvim#98
heirline could have different behavior from lualine.
Thank you for note about the %
escaping behavior!
also it's super welcome if you could submit PR to give people a sample, share how you integrate lsp-progress with heirline.
Sure! I'll consider submitting a PR for that then. Thanks again! :)
As a beginner new to Neovim autocommands, configuring
heirline.nvim
with a plugin that requires updatin a component upon a user event was a challenge.For example, I created an
LspMessages
component withheirline.nvim
that relies on linrongbin16/lsp-progress.nvim for theprovider
and needs to be updated when theLspProgressStatusUpdated
user event is emitted:The only example of
update
with apattern
in the cookbook is a builtin event for refreshing a cmoponent when the mode changes:The mistake I made was extrapolating the builtin event example for the user event:
The error you get with the above is "Invalid 'event': 'LspProgressStatusUpdated'".
I'm sure those more familiar with autocommands in Neovim wouldn't make this mistake, but for beginners an example for user events might be helpful!
Thank you again.
heirline.nvim
is very cool for building a customized statusline! :sunglasses: