ldelossa / nvim-ide

A full featured IDE layer for Neovim. Heavily inspired by VSCode.
MIT License
826 stars 27 forks source link

Question mark icons in outline even when nerd font is installed #84

Closed leslie255 closed 1 year ago

leslie255 commented 1 year ago

I am using a nerd font, and icon_set is set to "nerd" (I also tried "default"), but it still shows question marks instead of the proper icons in every panel except for the file icons.

Screenshot 2022-12-09 at 11 12 58

My full config for nvim-ide:

-- default components
local bufferlist      = require('ide.components.bufferlist')
local explorer        = require('ide.components.explorer')
local outline         = require('ide.components.outline')
local callhierarchy   = require('ide.components.callhierarchy')
local timeline        = require('ide.components.timeline')
local terminal        = require('ide.components.terminal')
local terminalbrowser = require('ide.components.terminal.terminalbrowser')
local changes         = require('ide.components.changes')
local commits         = require('ide.components.commits')
local branches        = require('ide.components.branches')
local bookmarks       = require('ide.components.bookmarks')

require('ide').setup({
    -- The global icon set to use.
    -- values: "nerd", "codicon", "default"
    icon_set = "nerd",
    -- Component specific configurations and default config overrides.
    components = {
        -- The global keymap is applied to all Components before construction.
        -- It allows common keymaps such as "hide" to be overriden, without having
        -- to make an override entry for all Components.
        --
        -- If a more specific keymap override is defined for a specific Component
        -- this takes precedence.
        global_keymaps = {
            jump = "o",
            maximize = "=",
            minimize = "-"
        },
        -- example, prefer "x" for hide only for Explorer component.
        -- Explorer = {
        --     keymaps = {
        --         hide = "x",
        --     }
        -- }
    },
    -- default panel groups to display on left and right.
    panels = {
        left = "explorer",
        right = "git",
        bottom = "terminal",
    },
    -- panels defined by groups of components, user is free to redefine the defaults
    -- and/or add additional.
    panel_groups = {
        explorer = { outline.Name, bufferlist.Name, explorer.Name, bookmarks.Name, callhierarchy.Name,
            terminalbrowser.Name },
        terminal = { terminal.Name },
        git = { changes.Name, commits.Name, timeline.Name, branches.Name }
    },
    -- workspaces config
    workspaces = {
        -- which panels to open by default, one of: 'left', 'right', 'both', 'none'
        auto_open = 'left',
    },
    -- default panel sizes for the different positions
    panel_sizes = {
        left = 30,
        right = 30,
        bottom = 15
    }
})
ldelossa commented 1 year ago

Your patched font is missing glyphs.

Please try with this font: https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/Cousine/Regular/complete/Cousine%20Regular%20Nerd%20Font%20Complete%20Mono%20Windows%20Compatible.ttf

And ensure your terminal is correctly using it.

Reopen the issue if the problem persists. But this is very likely not an nvim-ide issue.

leslie255 commented 1 year ago

Thanks for the quick response! It's working properly now

ldelossa commented 1 year ago

Awesome