matbme / JABS.nvim

Just Another Buffer Switcher for Neovim
GNU General Public License v3.0
280 stars 10 forks source link

symbols removed from nerdfonts #51

Open KT313 opened 10 months ago

KT313 commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

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 commented 8 months ago

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