-
-
Notifications
You must be signed in to change notification settings - Fork 52
Add kind mapping #223
base: master
Are you sure you want to change the base?
Add kind mapping #223
Conversation
|
Thank you for your contribution. I think this feature is unnecessary because we already have https://github.com/onsails/lspkind-nvim . I'm considering it to support by nvim-compe itself. But it still needs more time. |
|
In fact, https://github.com/onsails/lspkind-nvim is work out of box. As it replace language server by require('vim.lsp.protocol').CompletionItemKind = symbolsBut The way Lspkind-nvim update kind is by attach the nerd font in front of kind. So the kind will be But what I want is Which is similar to vscode. vscode: |
|
I'm now using lspkind with following config and it worked as you expected. |
|
Well, 2~3 lines of change in compe or introduce a plugin for it... |
|
To be honest, I think this feature needs more consideration. For example, Currently, the buffer source results don't have kind. But user will want this configuratuon affect to buffer source, I think. |
|
As I only need a hard code kind icon. So I can easily do this in init.vim while I waiting for this feature : What would be ideal that:
|
|
I think the ideal solution like as the following. It means we should define |
49d1dfc to
ab623db
Compare
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |



This is a port from complete-nvim feature which will show LSP kinds to a nerdfont
e.g {["Function"] = ""; ["Interface"] = "擄";}