codicons.nvim icon indicating copy to clipboard operation
codicons.nvim copied to clipboard

nvim-cmp source?

Open Davidyz opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. I find it more intuitive to have the icons as strings, rather than unicode/hex numbers, in my config files and sometimes I need to type the icons in non-neovim config files (terminal emulators, shell prompts, etc).

Describe the solution you'd like Implement a nvim-cmp completion source such that, when I type the icon's name (like symbol-class), it will insert the icon directly into the buffer.

Describe alternatives you've considered I could write a standalone plugin but I think your code provides a really nice infrastructure for the completion source that I can make use of, in which case I might as well just try to upstream it.

Additional context I tried to implement my own plugin and got the completion working before I discovered this plugin. I can submit PR if needed.

Davidyz avatar Aug 18 '24 22:08 Davidyz

Hi @Davidyz! Sorry for late reply. I've added a completion source for nvim-cmp, so hopefully it works for you as well. :)

mortepau avatar Sep 29 '24 21:09 mortepau

Hi, can this not require nvim-cmp by default? I'm not using it and on this new version my config is erroring saying that it's not available. Or is there some way to disable it?

AlansCodeLog avatar Jan 19 '25 02:01 AlansCodeLog

@AlansCodeLog Added a way of disabling it by setting vim.g.codicons_extension_cmp_disable = true

mortepau avatar Jan 28 '25 20:01 mortepau

Thank you! ❤️

AlansCodeLog avatar Jan 29 '25 18:01 AlansCodeLog