Skip to content

A simple neovim plugin for generating React components files.

License

Notifications You must be signed in to change notification settings

rodsnts/component_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Neovim Component Generator Plugin

This is a Neovim Lua plugin that generates React component files with associated tests.

Installation

  1. Install Neovim with Lua support.

  2. Install Packer, a plugin manager for Neovim.

  3. To install with packer add the following line:

    use {'rodsnts/component_generator'}

Usage

Once the plugin is installed, you can use the :GenerateComponent command in Neovim to open a text box. Enter the desired component name in the text box and press Enter. The plugin will then generate a .tsx file with a React component and a corresponding .test.tsx file with a basic test. The generated files will be placed in the components/{componentName} directory relative to the current working directory.

About

A simple neovim plugin for generating React components files.

Resources

License

Stars

Watchers

Forks

Languages