Skip to content

Docker icons not rendering correctly #2182

@sollymay

Description

@sollymay

Description

Looks like the docker icons are not displaying properly for some reason? All other icons work properly

Screenshot 2023-05-03 at 3 50 10 PM

Neovim version

NVIM v0.9.0
Build type: Release
LuaJIT 2.1.0-beta3

Operating system and version

macOS 13.3.1

nvim-tree version

commit 53295de

Minimal config

local tree_cb = require 'nvim-tree.config'.nvim_tree_callback

local function open_nvim_tree(data)
    local directory = vim.fn.isdirectory(data.file) == 1

    if not directory then
        return
    end

    vim.cmd.cd(data.file)
    -- open the tree
    require("nvim-tree.api").tree.open()
end

vim.g.view_mappings_list = {
    ["<C-.>"] = tree_cb("edit_in_place"),
}

return {
    'nvim-tree/nvim-tree.lua',
    dependencies = { 'nvim-tree/nvim-web-devicons' },
    config = function()
        require("nvim-tree").setup({
            view = {
                width = 50,
                number = true,
                relativenumber = false,
            },
            git = {
                ignore = false,
            },
            actions = {
                open_file = {
                    quit_on_open = true
                },
                change_dir = {
                    enable = false,
                },
            },

Steps to reproduce

open a project with a docker-compose.yml or Dockerfile

Expected behavior

icons render correctly

Actual behavior

icons render incorrectly

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions