Skip to content

eliasreis54/vim-bloc-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 

Repository files navigation

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

About

Vim plugin to generate Flutter Bloc or Cubit files

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published