-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tex icon affects filename #204
Comments
well i don't think this should be related to icons. Could you reproduce with a super minimal vimrc ? like only dirvish and web devicons ? |
On my system, starting packadd vim-dirvish
packadd nvim-web-devicons
call dirvish#add_icon_fn({p -> luaeval("require('nvim-web-devicons').get_icon(vim.fn.fnamemodify('" .. p .. "', ':e')) or ' '")}) Here is the output of
|
I don't think this issue can come from nvim-web-devicons, which only returns an icon and a highlight group. It doesn't operator on text. Dirvish must do something weird with the result. |
|
Actually, I observe the same strange behavior when not placing the space between the icon and the text. I.e.:
Gives: PS: Sorry for the long delay, I only just found time to look into this again. |
The issue does not appear in |
I was unsure whether to file this issue here or at https://github.com/kyazdani42/nvim-web-devicons so I am going to tag @kyazdani42
Today I noticed the following bug:
On the left you can see a dirvish buffer of the contents as listed on the right.
On line 6 you can see that the filename of the tex file is printed in reverse! I have no idea what could cause this but without the devicons it obviously does not happend.
I use this to display the icons:
The text was updated successfully, but these errors were encountered: