Skip to content

ken11/GitComet.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

GitComet

πŸš€ About GitComet

GitComet is a Neovim plugin designed to generate commit messages at lightning speedβ€”just like a comet! The name "GitComet" is inspired by the speed of a comet and a play on words combining Commit, and Comment.

For users who are restricted to using AWS Amazon Bedrock for security reasons, GitComet provides an easy way to generate AI-powered commit messages directly in Neovim.

✨ Features

  • Uses Amazon Bedrock (Claude 3.5 Sonnet) to generate commit messages.
  • Supports structured commit message prefixes (e.g., πŸ› fix:, ✨ add:).
  • Seamless integration with Lazy.nvim.
  • Works securely within AWS environments.

🌍 Environment Variables

GitComet uses the BEDROCK_KEYS environment variable to authenticate with AWS Bedrock. This variable should be set in the following format:

export BEDROCK_KEYS=aws_access_key_id,aws_secret_access_key,aws_region

GitComet follows the same convention as avante.nvim to ensure compatibility with other AI-powered Neovim plugins.

πŸ“Œ How to Use

Install with lazy.nvim

Add the following configuration to your lazy.nvim setup:

return {
    "ken11/GitComet.nvim",
    dependencies = { "nvim-lua/plenary.nvim" },
    config = function()
        require("gitcomet").setup({
          -- add any options here
        })
    end
}

Usage

To ensure Neovim opens automatically when committing, configure Git to use Neovim as the default editor:

git config --global core.editor "nvim"
  1. Stage your changes using git add . or git add <file>.
  2. Commit your changes, which will open Neovim as the editor:
    git commit
  3. Run the command inside Neovim:
    :GitComet
  4. GitComet will generate and insert the commit message based on the staged changes.
  5. Save and commit!

Start using GitComet and make your commit messages faster than ever! πŸš€

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages