Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LSP 的代码提示 icon 似乎有问题 #8

Closed
legends-killer opened this issue Sep 10, 2022 · 2 comments
Closed

LSP 的代码提示 icon 似乎有问题 #8

legends-killer opened this issue Sep 10, 2022 · 2 comments

Comments

@legends-killer
Copy link

如图,在使用了 nvim-web-devicons. 要求的字体后,文件目录能正常显示 icon,但是 LSP 的代码提示却仍会出现丢失的 icon,该如何解决呢?请赐教~
image

image

@itsuki0927
Copy link
Owner

因为lsp的icon是使用的vscode的icon, 但是我们使用的字体中没有这些icon, 所以需要打一个补丁(把vscode的icon添加到你当前的字体中) ,所以需要以下几步:

  1. 需要在这里下载vscode的icon 字体.
  2. 解压出来之后dist文件下的 ttf文件, 把它放到桌面.
  3. 需要一个font-patcher对当前字体打一个补丁, 具体步骤可以看font-patcher

如果有报错的话, 可以查看这个issue, 如果不是这个问题的话, 可以在nred-font这个仓库的issue搜索相关的问题, 会有答案的.

@legends-killer
Copy link
Author

已解决,感谢~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants