Skip to content
This repository has been archived by the owner on Jul 5, 2022. It is now read-only.

Icon reverses text #52

Closed
AckslD opened this issue Dec 20, 2021 · 4 comments
Closed

Icon reverses text #52

AckslD opened this issue Dec 20, 2021 · 4 comments

Comments

@AckslD
Copy link

AckslD commented Dec 20, 2021

I'm not sure what's going on and if it's nvim-gps's fault but when I set the container icon to the one I want it reverses the whole text, see following screenshot for what I mean:

gscreenshot_2021-12-20-094442

If I set it to eg 'c' it's not reversed. It is also reversed if I just print require('nvim-gps').get_location(). Any idea what's going on here? The icon I want to use is 0xfb85 (ﮅ). I'm using nerd-fonts-fira-code from AUR and alactritty.

Edit: If I use another one, eg 0xf01c it's not reversed.

@SmiteshP
Copy link
Owner

I am not able to reproduce this issue in my config. I am using alacritty and Input Mono font. Also tried it with the AUR fira code font you mentioned, still works fine for me.
So something else in your config must be reversing the text.

@AckslD
Copy link
Author

AckslD commented Dec 27, 2021

Thanks for checking @SmiteshP, I'll let you know if I figure out why this happens :)

@jdrouhard
Copy link

The problem is that some icons in nerdfonts switch the active direction for the bidirectional algorithm. I described this issue in nvim-web-devicons which has the same issue for some filetype icons (tex and svg are ones I know of for certain).

If you surround the icon with the direction isolates like I describe there, it should fix your issue.

@AckslD
Copy link
Author

AckslD commented Dec 29, 2021

I see thanks for explaining @jdrouhard!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants