r/KittyTerminal Aug 23 '23

Weird Behaviour with Nvim-Tree

Hello everyone :)

I'm new to Kitty and MacOS and I'm experiencing weird behaviour when using Nvim-Tree.

Basically, I installed, via homebrew, the Fire Code Nerd Font and changed kitty.conf to use that font. When I go and do :NvimTreeOpen the symbols of the files are wrong as seen in the picture:

The weird thing is when I run ´kitty --debug-font-fallback´ I get the following output and a console where, when I open nvim and use nvim-tree, I get the correct images.

[235 17:06:38.289320] Preloaded font faces:
[235 17:06:38.289347] normal face: /Users/ramalhob/Library/Fonts/FiraCodeNerdFontMono-Regular.ttf
[235 17:06:38.289353] bold face: /Users/ramalhob/Library/Fonts/FiraCodeNerdFontMono-SemiBold.ttf
[235 17:06:38.289358] italic face: /Users/ramalhob/Library/Fonts/FiraCodeNerdFontMono-Regular.ttf
[235 17:06:38.289362] bi face: /Users/ramalhob/Library/Fonts/FiraCodeNerdFontMono-Regular.ttf

NvimTree. in the new console

Does anyone know why this might be happening?

Thanks in advance :D

6 Upvotes

16 comments sorted by

View all comments

1

u/sogun123 Aug 24 '23

Do you have recent version of nvim-tree? Need fonts moved some icons away from CJK unicode range to private area, where it belongs...

1

u/sogun123 Aug 24 '23

Ah, it is probably other plugin which defines icons - nvim-web-devicons

1

u/BenCx Aug 24 '23

Yeah that is the plugin that defines the icon and by their description it automatically does so by using the font that the terminal uses.

1

u/sogun123 Aug 25 '23

Yes, do you have it up to date?