Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eliasreis54/vim-bloc-plugin

Vim plugin to generate Flutter Bloc or Cubit files
https://github.com/eliasreis54/vim-bloc-plugin

flutter flutter-bloc neovim vim-plugin

Last synced: 28 days ago
JSON representation

Vim plugin to generate Flutter Bloc or Cubit files

Awesome Lists containing this project

README

        

# vim-bloc-plugin

This plugin was designed to be similar as the [vscode extension](https://github.com/felangel/bloc/tree/master/extensions/vscode).

Generating the Flutter Bloc or Cubit files.

## Installation

Assuming you are using vim-plug as plugin manager, you can just put it in your `init.vim`

```bash
Plug 'eliasreis54/vim-bloc-plugin'

```

run `:PlugInstall`, after that, you must source your `.vimrc`

## Usage

After your have installed the plugin, it enables two new commands

```bash
:Bloc
```

- BlocName: Is the name that will be used to generate all bloc files and classes
- **This name must be a CamelCase**
- DestinationFolder: Is the path to generate the files, like: `lib/posts`
- **Don't start with `/`**

```bash
:Cubit
```

- CubitName: Is the name that will be used to generate all cubit files and classes
- **This name must be a CamelCase**
- DestinationFolder: Is the path to generate the files, like: `lib/posts`
- **Don't start with `/`**

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

## License
[MIT](https://choosealicense.com/licenses/mit/)