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.
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.
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
Add the plugin entry for gsuuon/model.nvim to the lazy.nvim setup.
Register the mchat extension as the mchat filetype in the plugin entry.
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.
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

