{"id":13895577,"url":"https://github.com/chrisgrieser/cmp-nerdfont","last_synced_at":"2025-07-08T06:41:06.997Z","repository":{"id":106951038,"uuid":"550429210","full_name":"chrisgrieser/cmp-nerdfont","owner":"chrisgrieser","description":"nvim-cmp source for nerdfont icons","archived":false,"fork":false,"pushed_at":"2024-11-27T15:59:33.000Z","size":829,"stargazers_count":50,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-02T07:56:59.701Z","etag":null,"topics":["nerdfont","nvim-cmp"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"hrsh7th/cmp-emoji","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chrisgrieser.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-10-12T18:50:52.000Z","updated_at":"2025-06-17T00:35:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"7ffc0ef8-ed8b-4921-becb-233075d657d6","html_url":"https://github.com/chrisgrieser/cmp-nerdfont","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chrisgrieser/cmp-nerdfont","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisgrieser%2Fcmp-nerdfont","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisgrieser%2Fcmp-nerdfont/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisgrieser%2Fcmp-nerdfont/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisgrieser%2Fcmp-nerdfont/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrisgrieser","download_url":"https://codeload.github.com/chrisgrieser/cmp-nerdfont/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisgrieser%2Fcmp-nerdfont/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264211351,"owners_count":23573493,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nerdfont","nvim-cmp"],"created_at":"2024-08-06T18:02:19.064Z","updated_at":"2025-07-08T06:41:06.926Z","avatar_url":"https://github.com/chrisgrieser.png","language":"Lua","funding_links":[],"categories":["Lua"],"sub_categories":[],"readme":"\u003c!-- LTeX: enabled=false --\u003e\n# cmp-nerdfont\n\u003c!-- LTeX: enabled=true --\u003e\n\n`nvim-cmp` source for [nerdfont icons](https://www.nerdfonts.com/cheat-sheet).\nOver 9000 Nerdfont icons, [obsolete icons already\nexcluded](https://www.reddit.com/r/neovim/comments/122f5ro/announcing_nerdfix_a_checker_for_obsolete_nerd/).\nIncludes the news Neovim Nerdfont icon (requires Nerdfont v3.1.0).\n\n## Usage\nNerdfont completion is triggered via `:`, like emojis. \n\n## Setup\n\n```lua\nrequire'cmp'.setup {\n  sources = {\n    { name = 'nerdfont' }\n  }\n}\n```\n\n## Performance\nDue to the large number of icons, these source can cause some lagging. If you\nexperience such issues, you should tweak the `cmp` performance settings (`:help\ncmp-config.performance`).\n\n## Source Nerdfont icons\nThe dataset ([items.lua](./lua/cmp_nerdfont/items.lua)) can be recreated by\nrunning the following command in the shell:\n\n```bash\nsource=\"https://raw.githubusercontent.com/loichyan/nerdfix/main/src/cached.txt\"\necho \"return function() return {\" \u003e items.lua\necho \"$(curl -s \"$source\" | tail -n+2 | grep -v \"obsolete$\" | sed 's/(.*) (.*)/\\{ word = \":\\1\"; label = \"\\\\u\\2 \\1\"; insertText = \"\\\\u\\2\"; filterText =\":\\1\" };/')\" \u003e\u003e items.lua\necho \"}\" \u003e\u003e items.lua\n```\n\nTo create the `.csv` containing simply names and icons, run:\n\n```bash\nsource=\"https://raw.githubusercontent.com/loichyan/nerdfix/main/src/cached.txt\"\necho \"$(curl -s \"$source\" | grep -v \"obsolete$\" | sed -E 's/(.*) (.{4,5})/\\1;\\\\u\\2/')\" \u003e nerdfonts.csv\n```\n\n\u003c!-- vale Google.FirstPerson = NO --\u003e\n## Credits\n- Except for Nerdfont icons instead of emojis, this is simply a copy of\n  [hrsh7th/cmp-emoji](https://github.com/hrsh7th/cmp-emoji), so all credit for\n  this plugin goes to `hsrsh7th`.\n- Thanks to\n  [@loichyan](https://www.reddit.com/r/neovim/comments/122f5ro/announcing_nerdfix_a_checker_for_obsolete_nerd/)\n  for [nerdfix](https://github.com/loichyan/nerdfix), from where I got the [list\n\tof nerdfont names and their\n\tcodepoints](https://github.com/loichyan/nerdfix/blob/main/src/cached.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisgrieser%2Fcmp-nerdfont","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrisgrieser%2Fcmp-nerdfont","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisgrieser%2Fcmp-nerdfont/lists"}