Skip to content

IniyanKanmani/dart-snippets.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dart-snippets.nvim

A Neovim plugin for generating Dart data classes with common boilerplate code.

data-class.mov

Features

  • Support for common data class operations:
    • copyWith method
    • Map conversion
    • JSON serialization/deserialization
    • toString override
    • hashCode implementation
    • Equality operators
    • Equatable Property setters

Installation

{
    "IniyanKanmani/dart-snippets.nvim",
}
use "IniyanKanmani/dart-snippets.nvim"

Default Options

require("dart_snippets").setup({
    data_class = {
        copy_with = true,
        to_map = true,
        from_map = true,
        to_json = true,
        from_json = true,
        to_string = true,
        hash_code = true,
        operator = true,
        props = true,
    },
})

Usage

Commands

  • :GenerateDartDataClass - Generate a data class with all configured options

Support

If you encounter any issues or have questions, please feel free to:

  • Open an issue on GitHub
  • Submit a pull request

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

Acknowledgments

This plugin was created as a learning project to understand Neovim plugin development

⭐ If you find this plugin helpful, consider giving it a star on GitHub!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages