Codegpt-ng.nvim: a minimalist command based LLM plugin for Ollama and OpenAI with a powerful template system

Hi !

I am sharing codegpt-ng.nvim — a minimalist AI plugin designed for fast “vim way” workflows for quick iterations using LLMs.

How Does It Compare To X

This is a fork of CodeGPT.nvim fully refactored and brought back to life. Here is a quick overview of the new features:

  • Fully tested with Ollama and OpenAI API
    • More testing needed for Groc, Azure and Anthropic
  • Streaming mode for real-time popup responses
  • lua table-based configuration instead of global variables
  • Model definition inheritance: Define models that inherit other model parameters
  • New commands and helpers such as the % commmand range operator
  • Ability to cancel current request.
  • UI Query and select local or remote model
  • Strips thinking tokens from replies if the model forgets to use codeblocks
  • New callback types: insert_lines and prepend_lines
  • Refactored for idiomatic Lua and neovim plugin style
  • Simplified command system with explicit configuration
  • Chat History: Add example messages in a command definition
  • Tests with plenary library
  • Fixed statusline integration

And much more to cover here. I use it as my daily driver.

Contributions welcome !

Side note: The same post was instantly flaged on reddit /r/neovim as spam for no reason. I was a user there since years.

1 Like