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.
- 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.
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_regionGitComet follows the same convention as avante.nvim to ensure compatibility with other AI-powered Neovim plugins.
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
}To ensure Neovim opens automatically when committing, configure Git to use Neovim as the default editor:
git config --global core.editor "nvim"- Stage your changes using
git add .orgit add <file>. - Commit your changes, which will open Neovim as the editor:
git commit
- Run the command inside Neovim:
:GitComet
- GitComet will generate and insert the commit message based on the staged changes.
- Save and commit!
Start using GitComet and make your commit messages faster than ever! π