Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 1.21 KB

README.md

File metadata and controls

47 lines (29 loc) · 1.21 KB

vim-bloc-plugin

This plugin was designed to be similar as the vscode extension.

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

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

: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 /
: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 /

Contributing

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

License

MIT