nvim-neo-tree / neo-tree.nvim

Neovim plugin to manage the file system and other tree like structures.
MIT License
3.63k stars 210 forks source link

winbar icon not showing for Buffers #862

Closed kaykhan closed 1 year ago

kaykhan commented 1 year ago

Any idea what this "thing" is under before the the "Buffers" where the icon should be.

image

Any idea whats happening here?

local neo_tree_status, neo_tree = pcall(require, "neo-tree")
if not neo_tree_status then
    return
end

neo_tree.setup({
    source_selector = {
        winbar = true,
        statusline = false,
    },
    close_if_last_window = true, -- Close Neo-tree if it is the last window left in the tab
    default_component_configs = {
        indent = {
            with_expanders = true, -- if nil and file nesting is enabled, will enable expanders
        },
    },
    filesystem = {
        filtered_items = {
            hide_dotfiles = false,
            hide_gitignored = false,
        },
    },
    renderers = {
        directory = {
            { "indent" },
            { "icon" },
            { "current_filter" },
            { "diagnostics", errors_only = true, hide_when_expanded = true },
            { "git_status", hide_when_expanded = true },
            { "name" },
            { "clipboard" },
        },
        file = {
            { "indent" },
            { "icon" },
            --{ "diagnostics" },
            { "git_status" },
            { "name" },
            { "clipboard" },
            { "modified" },
        },
    },
})

vim.api.nvim_set_keymap("n", "<C-n>", ":NeoTreeFocusToggle<CR>", {})
nhat-vo commented 1 year ago

I'm using your config and it seems to work fine for me. I think the main possibility is that there is some error with your patched font. You can try setting different values for source_selector.tab_labels.buffers to see if it works.

kaykhan commented 1 year ago

I'm using your config and it seems to work fine for me. I think the main possibility is that there is some error with your patched font. You can try setting different values for source_selector.tab_labels.buffers to see if it works.

yes i think youre right, the font im using iosevka does not render this correctly. image

Is there an alternative icon i could use?

nhat-vo commented 1 year ago

@kaykhan Have a look at the nerd font icons and take what you need.

kaykhan commented 1 year ago

If anyone comes across this, i used 󰈙