Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/eliasreis54/vim-bloc-plugin
- Owner: eliasreis54
- Created: 2022-01-03T14:48:33.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-21T18:31:02.000Z (almost 3 years ago)
- Last Synced: 2024-10-03T23:44:38.448Z (about 2 months ago)
- Topics: flutter, flutter-bloc, neovim, vim-plugin
- Language: Vim script
- Homepage:
- Size: 20.5 KB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/)