First file not showing dirname until rewind or write #90
Unanswered
doctorfree
asked this question in
Q&A
Replies: 1 comment
-
This behavior is intermittent. That is, it sometimes works and sometimes does not. It may be a timing thing or an environment thing but whatever it is, it is difficult to debug. The few extra steps in calculating I guess we need some weirdness to keep it interesting. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have configured
barbecue
to displaydirname
and notbasename
and added an autocmd to update barbecue.The first file opened does not show
dirname
. The dirname appears after:rew
or if I write the file out. If I go to the next file,dirname
is displayed properly. My guess is that my barbecue update autocmd is not getting loaded early enough. But when I move the autocmd to an earlier point in startup it still fails in the same manner. I'm lazy loading plugins withlazy.nvim
.If I switch from displaying
dirname
to displayingbasename
in the barbecue config, that works properly. So now I'm thinking, no it is not the load order, the autocmd is working. I looked briefly at the barbecue code and calculating the dirname component is more complex than calculating the basename. Could it be a timeout? Do people have dirname working properly?Well, it does work properly, just not for the initial buffer until I manually trigger it. Perhaps I need to add some additional event to the autocmd? Any help or suggestions or thoughts are welcome.
Here is my plugin spec and configuration:
Beta Was this translation helpful? Give feedback.
All reactions