Jan Smrcka
Jan Smrcka

Full-stack Engineer

Full-time at ELI · Taking select contracts
Back

nvim-auto-commit

LuaOpenAI

Neovim plugin that analyzes staged git changes and generates multiple AI-powered commit messages. Stage your changes, run :AICommit, pick from 4 suggestions in a modal. Done.

Usage

$ git add src/auth.lua
:AICommit

┌─────── Select Commit Message ───────┐
│ 1. feat(auth): add login validation │
│ 2. fix(auth): resolve session bug   │
│ 3. refactor: improve auth logic     │
│ 4. chore(auth): update dependencies │
└─────────────────────────────────────┘

Features

  • Generate commit messages using OpenAI GPT models
  • Modal selection interface with 4 suggestions
  • Asynchronous generation (non-blocking)
  • Conventional commit format support
  • Optional auto-push after commit
  • Configurable AI model and parameters