https://github.com/chrisgrieser/cmp-nerdfont
nvim-cmp source for nerdfont icons
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (6.4%) to scientific vocabulary
Keywords
Repository
nvim-cmp source for nerdfont icons
Basic Info
Statistics
- Stars: 51
- Watchers: 2
- Forks: 1
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
cmp-nerdfont
nvim-cmp source for nerdfont icons.
Over 9000 Nerdfont icons, obsolete icons already
excluded.
Includes the news Neovim Nerdfont icon (requires Nerdfont v3.1.0).
Usage
Nerdfont completion is triggered via :, like emojis.
Setup
lua
require'cmp'.setup {
sources = {
{ name = 'nerdfont' }
}
}
Performance
Due to the large number of icons, these source can cause some lagging. If you
experience such issues, you should tweak the cmp performance settings (:help
cmp-config.performance).
Source Nerdfont icons
The dataset (items.lua) can be recreated by running the following command in the shell:
bash
source="https://raw.githubusercontent.com/loichyan/nerdfix/main/src/cached.txt"
echo "return function() return {" > items.lua
echo "$(curl -s "$source" | tail -n+2 | grep -v "obsolete$" | sed 's/(.*) (.*)/\{ word = ":\1"; label = "\\u\2 \1"; insertText = "\\u\2"; filterText =":\1" };/')" >> items.lua
echo "}" >> items.lua
To create the .csv containing simply names and icons, run:
bash
source="https://raw.githubusercontent.com/loichyan/nerdfix/main/src/cached.txt"
echo "$(curl -s "$source" | grep -v "obsolete$" | sed -E 's/(.*) (.{4,5})/\1;\\u\2/')" > nerdfonts.csv
Credits
- Except for Nerdfont icons instead of emojis, this is simply a copy of
hrsh7th/cmp-emoji, so all credit for
this plugin goes to
hsrsh7th. - Thanks to @loichyan for nerdfix, from where I got the list of nerdfont names and their codepoints.
Owner
- Name: Chris Grieser
- Login: chrisgrieser
- Kind: user
- Location: Berlin, Germany
- Company: Technical University of Berlin
- Website: https://chris-grieser.de/
- Repositories: 189
- Profile: https://github.com/chrisgrieser
Researcher in sociology & software developer
GitHub Events
Total
- Watch event: 13
- Push event: 1
Last Year
- Watch event: 13
- Push event: 1
Committers
Last synced: 8 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| pseudometa | 7****r | 19 |
| hrsh7th | h****h@g****m | 4 |
Issues and Pull Requests
Last synced: 8 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0