MCP Catalogs
Homenvim-gemini-companion screenshot

nvim-gemini-companion

by gutsavgupta·82·Score 45

Neovim plugin integrating Gemini and Qwen AI agents with MCP backend for seamless code assistance.

developer-toolsai-llmproductivity
7
Forks
2
Open issues
3 mo ago
Last commit
2d ago
Indexed

Overview

This Neovim plugin provides a sophisticated integration with AI agents like Gemini and Qwen through the Model Context Protocol (MCP). Unlike traditional AI plugins, it's built around an MCP backend that maintains tight integration with the editor environment. The plugin features a customizable sidebar interface for AI interactions, supports multiple agents simultaneously, offers diff management for accepting or rejecting AI suggestions, and includes tmux integration for persistent sessions across editor restarts.

Try asking AI

After installing, here are 6 things you can ask your AI assistant:

you:Get AI assistance directly in Neovim for code debugging and improvement
you:Switch between multiple AI agents (Gemini and Qwen) for different tasks
you:Manage persistent AI sessions using tmux integration across editor sessions
you:What MCP servers does this plugin use?
you:Can I use multiple AI agents simultaneously?
you:Is tmux integration required?

When to choose this

Choose this plugin if you're a Neovim user looking for integrated AI assistance with Gemini or Qwen, especially if you need persistent tmux sessions and diff management.

When NOT to choose this

Avoid if you're not using Neovim or if you prefer other AI tools that offer deeper IDE integration beyond what terminal-based agents can provide.

Tools this server exposes

8 tools extracted from the README
  • GeminiToggle

    Toggle the AI sidebar for the Gemini companion

  • GeminiSwitchToCli

    Switch between different AI agent sessions

  • GeminiSend

    Send selected text to the AI agent

  • GeminiSendLineDiagnostic

    Send line diagnostics to the AI agent for debugging

  • GeminiSendFileDiagnostic

    Send file diagnostics to the AI agent for debugging

  • GeminiSwitchSidebarStyle

    Switch the appearance/style of the AI sidebar

  • GeminiAccept

    Accept AI-suggested changes in the current diff view

  • GeminiReject

    Reject AI-suggested changes in the current diff view

Note: Tool names extracted from documentation but signatures are not provided. These appear to be commands within Neovim rather than direct MCP tools.

Comparable tools

copilot-nvimcodegpt.nvimtabnine-nvimchatgpt.nvim

Installation

Installation

Install with your favorite plugin manager:

{
  "gutsavgupta/nvim-gemini-companion",
  dependencies = { "nvim-lua/plenary.nvim" },
  event = "VeryLazy",
  config = function()
    require("gemini").setup()
  end,
  keys = {
    { "<leader>gg", "<cmd>GeminiToggle<cr>", desc = "Toggle Gemini sidebar" },
    { "<leader>gc", "<cmd>GeminiSwitchToCli<cr>", desc = "Spawn or switch to AI session" },
    { '<leader>gS', '<cmd>GeminiSend<cr>', mode = { 'x' }, desc = 'Send selection to Gemini' },
  }
}

Pre-requisites

Install any or both CLI tools and ensure they're in your system's PATH:

  • [gemini-cli](https://github.com/google-gemini/gemini-cli)
  • [qwen-code](https://github.com/QwenLM/qwen-code)

FAQ

What MCP servers does this plugin use?
The plugin uses gemini-cli and qwen-code as backend AI agents, integrated through the Model Context Protocol.
Can I use multiple AI agents simultaneously?
Yes, the plugin supports multi-agent configuration, allowing you to run both Gemini and Qwen agents at the same time and switch between them.
Is tmux integration required?
No, tmux integration is optional. You can use the sidebar terminal directly without tmux for simpler sessions.

Compare nvim-gemini-companion with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.