neoclide / coc-sources

Additional common sources of coc.nvim
209 stars 12 forks source link

Is there a way to insert emoji names rather than emojis themselves #41

Closed CaptainQuirk closed 4 years ago

CaptainQuirk commented 4 years ago

Hi !

I'm using a custom nerd fonts in a urxvt terminal and I'd rather have emoji names (like :thumbsup:) than the raw emojis themselves. Is it achievable ?

Thanks in advance !

chemzqm commented 4 years ago

Sure, you can write single file extension, there's example on wiki

Freed-Wu commented 2 years ago

Hey! You can try https://github.com/nyaa8/coc-emoji-shortcodes. It has not been published in npm, so it cannot be installed by coc-marketplace. You can git clone it to ~/.config/coc/extensions/node_modules/, then add

    "coc-emoji-shortcodes": ">=1.0.1",

to ~/.config/coc/extensions/package.json to use this package.