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

Update to nerd-fonts v3 #53

Closed
sQVe opened this issue May 5, 2023 · 2 comments
Closed

Update to nerd-fonts v3 #53

sQVe opened this issue May 5, 2023 · 2 comments

Comments

@sQVe
Copy link

sQVe commented May 5, 2023

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

See onsails/lspkind.nvim#64 for reference.

@rcsalomao
Copy link
Contributor

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
Copy link
Owner

Closing this as #58 resolves this

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