Skip to content
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

symbols removed from nerdfonts #51

Open
KT313 opened this issue Oct 21, 2023 · 3 comments
Open

symbols removed from nerdfonts #51

KT313 opened this issue Oct 21, 2023 · 3 comments

Comments

@KT313
Copy link

KT313 commented Oct 21, 2023

Screenshot from 2023-10-21 10-03-13
it seems like those missing symbols got removed from nerdfonts with an update. is there a fix for this?
Screenshot from 2023-10-21 10-04-25

@jeff-dh
Copy link
Contributor

jeff-dh commented Oct 21, 2023

I guess it's the hidden symbol that's missing, try to set this in your config (and choose a symbol you like instead of H):

require 'jabs'.setup {
    symbols = {
        hidden = "H",
    },
}

@KT313
Copy link
Author

KT313 commented Oct 21, 2023

thanks jeff-dh for the quick reply.
if found a workaround:
i installed the (old) v2.3.3 version of Symbols only nerd font and created the following file in ~/.config/fontconfig/fonts.conf:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <alias>
        <family>RobotoMono Nerd Font</family>
        <prefer>
            <family>RobotoMono Nerd Font</family>
        </prefer>
        <default>
            <family>Symbols NFM</family>
        </default>
    </alias>
</fontconfig>

so when my terminal is using robotomono nerd font and the symbol is not available, it uses the old symbols nfm font as fallback

@RikRoos
Copy link

RikRoos commented Dec 26, 2023

I just installed the plugin myself and see only little squares in the first column. In some article it was mentioned that nerd-fonts < 3.0 used a certain set of codepoints that was reserved for other purposes and is now discarded from the library.

UPDATE:
I just updated my terminal config (alacritty) to use the nerdfont (downloaded with my packagemanager xbps) with name "family: InconsolataGo Nerd Font Mono". To list all available fonts I used:
$> fc-list | grep 'ttf*Nerd' | sort | bat

I looked for a "hidden" icon with the search function of nerdfonts website and copied the icon-symbol (utf: f0613)

I followed the instruction above and pasted the symbol in place of the H-char. Now it works :)

I also tried to insert the UTF-literal instead of the icon-symbol but that was not easy with the Lua syntax, I gave up.

image

Screenshot:
image

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

No branches or pull requests

3 participants