This plugin was designed to be similar as the vscode extension.
Generating the Flutter Bloc or Cubit files.
Assuming you are using vim-plug as plugin manager, you can just put it in your init.vim
Plug 'eliasreis54/vim-bloc-plugin'
run :PlugInstall
, after that, you must source your .vimrc
After your have installed the plugin, it enables two new commands
:Bloc <BlocName> <DestinationFolder>
- 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
/
- Don't start with
:Cubit <CubitName> <DestinationFolder>
- 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
/
- Don't start with
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.