You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a somewhat trivial issue, I was just curious as to why the two seemingly equivalent components below don't behave the same.
They both display the grapple tag number of a file if it exists, but only the first one behaves as I would expect (see below demo for more info). The only difference between the two is that in the 1st one the condition require("grapple").exists() is checked directly inside the provider function, while in the 2nd one the condition is provided as a table entry. I'm not sure why this would cause them to behave differently.
Demo
Below is a simple test for the 2nd component, which for some reason doesn't display the Grapple tag initially when toggled even though the condition is met and the update autocmd event is emitted. After some time (usually when I toggle the tag while other components in the statusline are updating), the component finally shows and updates as I would expect it to do when toggling a tag. (btw, this happens when I first start neovim, after the component finally shows, the issue disappears completely)
This is a somewhat trivial issue, I was just curious as to why the two seemingly equivalent components below don't behave the same.
They both display the grapple tag number of a file if it exists, but only the first one behaves as I would expect (see below demo for more info). The only difference between the two is that in the 1st one the condition
require("grapple").exists()
is checked directly inside the provider function, while in the 2nd one the condition is provided as a table entry. I'm not sure why this would cause them to behave differently.Demo
Below is a simple test for the 2nd component, which for some reason doesn't display the Grapple tag initially when toggled even though the
condition
is met and theupdate
autocmd event is emitted. After some time (usually when I toggle the tag while other components in the statusline are updating), the component finally shows and updates as I would expect it to do when toggling a tag. (btw, this happens when I first start neovim, after the component finally shows, the issue disappears completely)Test Autocmd
The text was updated successfully, but these errors were encountered: