-
DescriptionLooks like the docker icons are not displaying properly for some reason? All other icons work properly Neovim version
Operating system and versionmacOS 13.3.1 nvim-tree versioncommit 53295de Minimal configlocal 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 reproduceopen a project with a docker-compose.yml or Dockerfile Expected behavioricons render correctly Actual behavioricons render incorrectly |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Icons come from nvim-web-devicons and nvim-tree just prints them so unlikely that it is a culprit. Try some different font, update your current font, etc, and if none of it works issue should be transferred to nvim-web-devicons repo. I am assuming your font misses required glyph as all the others render fine. |
Beta Was this translation helpful? Give feedback.
-
seems like updating the font was the solution to this problem! thank you for pointing in the right direction! |
Beta Was this translation helpful? Give feedback.
Icons come from nvim-web-devicons and nvim-tree just prints them so unlikely that it is a culprit. Try some different font, update your current font, etc, and if none of it works issue should be transferred to nvim-web-devicons repo.
I am assuming your font misses required glyph as all the others render fine.