SmiteshP / nvim-navbuddy

A simple popup display that provides breadcrumbs feature using LSP server
Apache License 2.0
762 stars 30 forks source link

Update to nerd-fonts v3 #53

Closed sQVe closed 1 year ago

sQVe commented 1 year ago

There are multiple breaking changes in Nerd Fonts version 3.0, which makes the icons used in this package not render properly.

See https://github.com/onsails/lspkind.nvim/pull/64 for reference.

rcsalomao commented 1 year ago

Indeed. Just recently updated my font to v3.0.0 and am experiencing outdated icons across various other plugins and this one as well. What I am doing right now is to define the icons on my setup function like so:

return {
    "neovim/nvim-lspconfig",
    dependencies = {
        {
            "SmiteshP/nvim-navbuddy",
            dependencies = {
                "SmiteshP/nvim-navic",
                "MunifTanjim/nui.nvim"
            },
            opts = {
                lsp = { auto_attach = true },
                icons = {
                            File = "󰈙 ",
                            Module = " ",
                            Namespace = " ",
                            Package = " ",
                            Class = "󰠱 ",
                            Method = "󰊕 ",
                            Property = "󰜢 ",
                            Field = "󰇽 ",
                            Constructor = " ",
                            Enum = " ",
                            Interface = " ",
                            Function = "󰊕 ",
                            Variable = "󰂡 ",
                            Constant = "󰏿 ",
                            String = " ",
                            Number = " ",
                            Boolean = " ",
                            Array = " ",
                            Object = " ",
                            Key = " ",
                            Null = "󰟢 ",
                            EnumMember = " ",
                            Struct = "󰠱 ",
                            Event = " ",
                            Operator = " ",
                            TypeParameter = " "
                }
            }
        }
    },
    -- your lsp config or other stuff
}
SmiteshP commented 1 year ago

Closing this as #58 resolves this