OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Developer Tools & SDKs

Model.nvim

Model.nvim is an open-source Neovim plugin written in Lua that provides language-model completions, chat buffers, and customizable programmatic prompts. It connects to listed hosted providers and local llama.cpp or Ollama models.

Independent OpenViST project profile, based on linked sources.

Model.nvim — Neovim-based code completion and chat
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when you want language-model requests and prompt workflows inside Neovim, especially when you need control over Lua prompts, response placement, or provider choice.

Who it is for

  • Neovim users who want model-assisted completions in their editing workflow.
  • Developers who want to create or customize reusable prompts in Lua.
  • Users who want to work with hosted providers or configure local model backends.

Documented uses

  • Send the current buffer or selected text to a completion prompt and place the response in the buffer.
  • Conduct and resume multi-turn conversations in mchat buffers.
  • Build asynchronous or multistep Lua prompts and try them with different providers.
  • Add file or range context, including diagnostics, to a chat workflow.
Before you choose

Requirements & limits

The repository is public and specifies the MIT license. Setup requires Neovim 0.9.0 or later and curl.

  • Prompts can be configured to append, insert, replace, or use other response modes.
  • Chat conversations use mchat buffers and require the same ChatPrompt configuration to continue after reloading.
  • Hosted options include OpenAI and compatible APIs, Google PaLM, Together, and Hugging Face; local options include llama.cpp and Ollama.
  • The plugin is configured through Lua, so users should expect to work with Neovim configuration.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Install Model.nvim with lazy.nvim

Add the plugin to a Neovim setup using lazy.nvim and register its mchat filetype.

Before you start

  • Neovim 0.9.0 or higher
  • curl
  • lazy.nvim

Steps

  1. Add the plugin entry for gsuuon/model.nvim to the lazy.nvim setup.

  2. Register the mchat extension as the mchat filetype in the plugin entry.

  3. Optionally configure commands, filetype loading, and key mappings as shown in the README.

Expected outcome

The plugin is declared in the lazy.nvim configuration, with optional loading and key mappings configured.

Guide limitations

  • This setup recipe does not configure a provider or demonstrate a completed model request.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
15 November 2026
Original website title
gsuuon/model.nvim · Official homepage title · retained in its source language