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
Note This issue has been filed on vim-airlinehere, and on vim-plughere. This issue is filed here too as it could be in interface of devicons and vim-airline, or with the conditional plug loading scheme offered by vim-plug.
actual behavior
Devicons do not render in statusline, they render correctly in tabline for conditional plugin load feature of vim-plug. In case of vim running in terminal, reducing the size of terminal (to hide/fold the place where icons are to be rendered) and then expanding makes the icons appear in status line.
expected behavior
Given icons are rendering correctly in tabline, status line's code should be based on its model (sequence of events I guess) so they both render correctly.
Detailed example (also filed on vim-plug, just in case its a plugin load problem, we don't know yet):
Here's a very small test .vimrc in two flavors: 1) no conditional plugin load (.myvimrc1), 2) all plugs loaded conditionally on same trigger condition (.myvimrc2). We open two instances of vim, one each for the corresponding vimrc. One would expect the behavior of both vim instances to be same after triggering event happens in vim instance loaded with .myvimrc2. As can be seen below, the only difference between them its that devicons are not loaded in statusline of .myvimrc2, though they are loaded in tabline. For .myvimrc1's vim session, both statusline & tabline display devicons correctly. On further testing, I found that if reduce the size of the window to hide the region of statusline where devicons should have rendered, and enlarge the screen again... the icons appear. While this is definitely a bug for the interface between airline, and devicons, it is also a inquiry for vim-plug, and if there is a way to overcome this. I would appreciate an conditional load answer that works.
Screenshot for >> vim -u .myvimrc1 .myvimrc1:
Screenshot for >> vim -u .myvimrc2 .myvimrc2 && :Mycmd<CR>
Gif showing the behavior of .myvimrc2:
source (.myvimrc2), command vim -u .myvimrc2 .myvimrc2
Why do you need to lazy load vim-airline and vim-devicons in the first place?
Lazy loading is a hack, and sometimes breaks the behavior of plugins.
It's possible that these plugins are not designed for such use cases.
Please also see this issue.
I completely agree with this opinion.
Required Info
VimDevIcons
is the last loaded vim plugin?Optional Info
Note This issue has been filed on vim-airline here, and on vim-plug here. This issue is filed here too as it could be in interface of devicons and vim-airline, or with the conditional plug loading scheme offered by vim-plug.
actual behavior
Devicons do not render in statusline, they render correctly in tabline for conditional plugin load feature of vim-plug. In case of vim running in terminal, reducing the size of terminal (to hide/fold the place where icons are to be rendered) and then expanding makes the icons appear in status line.
expected behavior
Given icons are rendering correctly in tabline, status line's code should be based on its model (sequence of events I guess) so they both render correctly.
Detailed example (also filed on vim-plug, just in case its a plugin load problem, we don't know yet):
Here's a very small test .vimrc in two flavors: 1) no conditional plugin load (.myvimrc1), 2) all plugs loaded conditionally on same trigger condition (.myvimrc2). We open two instances of vim, one each for the corresponding vimrc. One would expect the behavior of both vim instances to be same after triggering event happens in vim instance loaded with .myvimrc2. As can be seen below, the only difference between them its that devicons are not loaded in statusline of .myvimrc2, though they are loaded in tabline. For .myvimrc1's vim session, both statusline & tabline display devicons correctly. On further testing, I found that if reduce the size of the window to hide the region of statusline where devicons should have rendered, and enlarge the screen again... the icons appear. While this is definitely a bug for the interface between airline, and devicons, it is also a inquiry for vim-plug, and if there is a way to overcome this. I would appreciate an conditional load answer that works.
Screenshot for
>> vim -u .myvimrc1 .myvimrc1
:Screenshot for
>> vim -u .myvimrc2 .myvimrc2
&&:Mycmd<CR>
Gif showing the behavior of .myvimrc2:
source (.myvimrc2), command
vim -u .myvimrc2 .myvimrc2
source (.myvimrc1), command
vim -u .myvimrc1 .myvimrc1
The text was updated successfully, but these errors were encountered: