{"id":25432948,"url":"https://github.com/shobhit-nagpal/nvim-rafce","last_synced_at":"2026-05-02T02:34:40.797Z","repository":{"id":231102519,"uuid":"780626445","full_name":"Shobhit-Nagpal/nvim-rafce","owner":"Shobhit-Nagpal","description":"generate rafce snippets instantly in nvim.","archived":false,"fork":false,"pushed_at":"2024-06-20T07:42:37.000Z","size":310,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-14T17:42:15.698Z","etag":null,"topics":["neovim","neovim-plugin","neovim-plugin-lua","neovim-plugins"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Shobhit-Nagpal.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-04-01T21:27:35.000Z","updated_at":"2025-05-13T17:25:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"2a2c53f7-bd77-4898-956a-0e492da8fe86","html_url":"https://github.com/Shobhit-Nagpal/nvim-rafce","commit_stats":null,"previous_names":["shobhit-nagpal/nvim-rafce"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Shobhit-Nagpal/nvim-rafce","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shobhit-Nagpal%2Fnvim-rafce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shobhit-Nagpal%2Fnvim-rafce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shobhit-Nagpal%2Fnvim-rafce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shobhit-Nagpal%2Fnvim-rafce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shobhit-Nagpal","download_url":"https://codeload.github.com/Shobhit-Nagpal/nvim-rafce/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shobhit-Nagpal%2Fnvim-rafce/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32521108,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["neovim","neovim-plugin","neovim-plugin-lua","neovim-plugins"],"created_at":"2025-02-17T05:17:28.944Z","updated_at":"2026-05-02T02:34:40.772Z","avatar_url":"https://github.com/Shobhit-Nagpal.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# Nvim-Rafce\n\n##### Write boilerplate React components with one command\n\n[![Lua](https://img.shields.io/badge/Lua-blue.svg?style=for-the-badge\u0026logo=lua)](http://www.lua.org)\n[![Neovim](https://img.shields.io/badge/Neovim%200.5+-green.svg?style=for-the-badge\u0026logo=neovim)](https://neovim.io)\n\n\u003cimg alt=\"Nvim-Rafce Logo\" height=\"280\" src=\"/assets/nvim-rafce-logo.png\" /\u003e\n\u003c/div\u003e\n\n## TOC\n\n- [Problem](#Problem)\n- [Solution](#Solutions)\n- [Installation](#Installation)\n- [Commands](#Commands)\n- [Socials](#Socials)\n\n## Problem\n\n1. You left behind VSCode and installed Neovim and are new to learning Vim motions, remaps, plugins, etc. You saw either yourself or other people using the RAFCE snippet to create boilerplate React component code. You want to save time by having something similar for Neovim.\n\n## Solution\n\n1. The ability to write a command in Neovim and have boilerplate component code on the fly.\n\n## Installation\n\nInstallation can be done in 2 ways:\n\n### 1. Manually\n\nRun the following commands to add nvim-rafce manually\n\n1. Clone repository\n\n```bash\ngit clone git@github.com:Shobhit-Nagpal/nvim-rafce.git\n```\n\n2. Navigate to your neovim config directory\n\n3. In your init.lua or if you have a after/plugin directory, create a file called rafce.lua and add the following lines:\n\n```lua\nvim.opt.runtimepath:append('/path/to/nvim-rafce')\nlocal rafce = require('rafce')\n```\n\n4. Source the file\n\n```vim\n:so\n```\n\n### 2. Plugin manager\n\n-- Lazy.nvim:\n\n```lua\n{'Shobhit-Nagpal/nvim-rafce',\n  config = function()\n      require('rafce')\n  end,\n}\n```\n\n-- Packer:\n\n```lua\nuse 'Shobhit-Nagpal/nvim-rafce'\n```\n\n-- Vim-plug:\n\n```lua\nPlug 'Shobhit-Nagpal/nvim-rafce'\n```\n\n## Commands\n\nThere are 3 different commands to use depending on your needs:\n\n**i.** Rafce (React functional component with arrow function and export at bottom)\n\n```vim\n:Rafce\n```\n\n```jsx\nimport React from \"react\";\n\nconst Component = () =\u003e {\n  return \u003cdiv\u003eComponent\u003c/div\u003e;\n};\n\nexport default Component;\n```\n\n**ii.** Rfce (React functional component with export at bottom)\n\n```vim\n:Rfce\n```\n\n```jsx\nimport React from \"react\";\n\nfunction Component() {\n  return \u003cdiv\u003eComponent\u003c/div\u003e;\n}\n\nexport default Component;\n```\n\n**iii.** Rfc (React functional component)\n\n```vim\n:Rfc\n```\n\n```jsx\nimport React from \"react\";\n\nexport default function Component() {\n  return \u003cdiv\u003eComponent\u003c/div\u003e;\n}\n```\n\n## Socials\n\n- [Twitter](https://twitter.com/shbhtngpl)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshobhit-nagpal%2Fnvim-rafce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshobhit-nagpal%2Fnvim-rafce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshobhit-nagpal%2Fnvim-rafce/lists"}