Neovim:缺少nvim-tree-web-devicons的图标
我添加了nvim-devicons
并安装了一个修补的字体:
https:// .nerdfonts.com/font-downloads 。
这些图标仍未显示,
带有包装器的配置:
https://github.com/kyazdani42/nvim-web-devicons
use({
"kyazdani42/nvim-tree.lua",
requires = {
"kyazdani42/nvim-web-devicons", -- optional, for file icons
},
})
这是我的Github Repo此配置:
https://github.com/azizizgharbi/neovim-config
我应该安装所有图标吗?因为我只安装了其中一个图标,即Big Blue终端
。
我在MacOS上使用ITERM2。
I added nvim-devicons
and installed one of the patched fonts:
https://www.nerdfonts.com/font-downloads.
the icons still not showing,
Config with packer:
https://github.com/kyazdani42/nvim-web-devicons
use({
"kyazdani42/nvim-tree.lua",
requires = {
"kyazdani42/nvim-web-devicons", -- optional, for file icons
},
})
This is my GitHub repo for this config:
https://github.com/azizgharbi/Neovim-config
Should i install all the icons ? because i only installed one of those icons which is big blue terminal
.
I am on macOs and using iterm2.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
确保将终端字体设置为使用修补字体。
更改iterm2中的字体:
Make sure to set the terminal font to use the patched font.
To change the font in iTerm2:
我在Ubuntu 22.04上的NVIM设置也遇到了同样的问题。 @fady的步骤效果很好:
之后,一旦重新打开NVIM,就应该看到这些步骤图标。
I also faced the same issue with my nvim setup on Ubuntu 22.04. @Fady's steps worked great with some extra steps:
After, folllowing these steps icons should be visible to you once you reopen your nvim.
升级我的发行版时也遇到了同样的问题。一直在使用 nvim-web-devicons 带有懒惰。
以下方法也可能对您有用:
该配置可能看起来与下面的配置相似,
如果没有什么比我的工作,请尝试使用终端打开您已安装了NVIM插件的目录,很可能很可能
〜/.local/.local/share/nvim/lazy/nvim-web-devicons
and code> and code>在该目录内运行NVIM,它可能会触发使其正常工作的某种东西。抱歉,我无法在图像之前和之后提供参考,并且服务器都不会让我上传作为编写时间上传。Got the same issue when upgraded my distro. Have been using Nvim-Web-Devicons with lazy.nvim.
The following methods might work for you too:
The config might look similar to this below,
If nothing works like mine, then try using the terminal to open the directory that you have installed the plugin for nvim, most probably
~/.local/share/nvim/lazy/nvim-web-devicons
and run nvim inside that directory and it might trigger some sort of thing that makes it work. Sorry I couldn't provide before and after images for reference and the server won't let me upload either as time of writing.