Skip to content

Abizrh/commit-ai.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧠commit-ai.nvim

demo-v1.mp4

commit-ai is a Neovim plugin that automatically generates commit messages using AI and summarizes changes properly! 💡

Features

  • Automated Commit Message Generation – Analyzes changes (git diff) and generates commit messages automatically.
  • AI-Powered Suggestions – UsesAI to create meaningful commit messages.
  • Multiple Commit Message Options – Provides different commit types (feat, fix, chore, enhancement, etc.).
  • Multiple Commit Languages – Supports multiple commit message languages.

Requirements

Installation

Lazy

{
    'Abizrh/commit-ai.nvim',
    dependencies = {
        'nvim-lua/plenary.nvim',
        'nvim-telescope/telescope.nvim',
    },
    config = function()
        require('commit-ai').setup {
          icons = false,
          language = 'en', -- default language
          -- unopiniated commit conventions
          git_conventions = {
            docs = { icon = "📖", prefix = "docs", type = "Documentation changes" },
            fix = { icon = "🐛", prefix = "fix", type = "Bug fix" },
            feat = { icon = "", prefix = "feat", type = "New feature" },
            enhance = { icon = "", prefix = "enhance", type = "Enhancement" },
            chore = { icon = "🧹", prefix = "chore", type = "Chore" },
            refactor = { icon = "⚠️", prefix = "refactor", type = "Breaking change" }
          },
          provider_options = {
            gemini = {
              model = 'gemini-2.0-flash',
              api_key = vim.env.GEMINI_API_KEY, -- assuming you have set GEMINI_API_KEY in .zshrc or .bashrc
              stream = false,
            },
          }
        }
    end,
},

Usage

Command Description
:Commit generate a commit message suggestions with AI

Contributing

Contributions are welcome! Please feel free to open an issue or submit a pull request.

About

🧠 A neovim plugin to handle commit using AI

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy