https://github.com/chrisgrieser/cmp-nerdfont

nvim-cmp source for nerdfont icons

https://github.com/chrisgrieser/cmp-nerdfont

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

nerdfont nvim-cmp
Last synced: 5 months ago · JSON representation

Repository

nvim-cmp source for nerdfont icons

Basic Info
  • Host: GitHub
  • Owner: chrisgrieser
  • Language: Lua
  • Default Branch: main
  • Homepage:
  • Size: 810 KB
Statistics
  • Stars: 51
  • Watchers: 2
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Topics
nerdfont nvim-cmp
Created over 3 years ago · Last pushed about 1 year ago
Metadata Files
Readme

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

Owner

  • Name: Chris Grieser
  • Login: chrisgrieser
  • Kind: user
  • Location: Berlin, Germany
  • Company: Technical University of Berlin

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

All Time
  • Total Commits: 23
  • Total Committers: 2
  • Avg Commits per committer: 11.5
  • Development Distribution Score (DDS): 0.174
Past Year
  • Commits: 1
  • Committers: 1
  • Avg Commits per committer: 1.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email 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
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels