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

custom lsp completion item icon #3661

Closed
qianxi0410 opened this issue Feb 21, 2022 · 4 comments
Closed

custom lsp completion item icon #3661

qianxi0410 opened this issue Feb 21, 2022 · 4 comments

Comments

@qianxi0410
Copy link

In another nvim completion plugin, you can customize your lsp kind of icons like:
图片
But in coc, there is no way to do this:
图片
Is it possible to provide users with such an option to customize the lsp icon, which will make the completion entry look more beautiful and straightforward.

@qianxi0410 qianxi0410 changed the title Text customization for completion entries custom lsp completion item icon Feb 21, 2022
@yaegassy
Copy link
Contributor

duplicate of #3568

@fannheyward
Copy link
Member

You can custom completion item labels by kind, checkout :helpgrep suggest.completionItemKindLabels.

@qianxi0410
Copy link
Author

thx :D @fannheyward

@Frederick888
Copy link

Just wanna drop a note that if you use the example completionItemKindLabels, you may want to disable right-to-left text for your terminal.

The struct symbol 0xFB44 is a Hebrew letter and Hebrew is RTL. So in a terminal that handles RTL (Kitty is the only one I found to support this) it looks like:

image

And it can mess up your text if you use pumblend:

image

You can disable RTL in Kitty with force_ltr yes. Or simply replace it with a different symbol. Replacing the double column ones (event, field, reference) is also a good idea.

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

4 participants