Skip to content

A Neovim plugin for generating Bloc and Cubit boilerplate code.

License

Notifications You must be signed in to change notification settings

wa11breaker/flutter-bloc.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flutter-bloc.nvim

A Neovim plugin for generating bloc and cubit boiler plate code.

Screen.Recording.2024-03-03.at.8.36.46.PM.mov

Features

  • Generate bloc boiler plate code
  • Generate cubit boiler plate code

Installation

{
  'wa11breaker/flutter-bloc.nvim'
}
use {
  'wa11breaker/flutter-bloc.nvim'
}

Usage

This plugin offers two commands out of the box to generate boilerplate code:

  • FlutterCreateBloc
  • FlutterCreateCubit

Alternatively, you can create your custom commands.

Example custom key mappings in Lua:

vim.keymap.set("n", "<Leader>cfb", "<cmd>lua require('flutter-bloc').create_bloc()<cr>", { desc = '[C]reate [F]lutter [B]loc' })
vim.keymap.set("n", "<Leader>cfc", "<cmd>lua require('flutter-bloc').create_cubit()<cr>", { desc = '[C]reate [F]lutter [C]ubit' })

Documentation

See :help flutter-bloc.nvim

About

A Neovim plugin for generating Bloc and Cubit boilerplate code.

Topics

Resources

License

Stars

Watchers

Forks

Languages