Getting Started
Table of contents
Welcome to chat.nvim! This guide will help you get started with the plugin.
Overview
chat.nvim is a lightweight, extensible chat plugin for Neovim with AI integration. It allows you to:
- Chat with AI assistants directly in your editor
- Manage multiple parallel sessions with different models
- Use built-in tools for file operations, Git, web search, etc.
- Integrate with instant messaging platforms for remote access
Quick Links
- Installation - Install and configure chat.nvim
- Configuration - Customize settings and options
- Usage - Commands, keybindings, and workflows
Prerequisites
Before installing chat.nvim, ensure you have:
- Neovim 0.9+ - Required for modern Lua features
- job.nvim - Required dependency for async operations
- picker.nvim - Optional but recommended for enhanced UI
- System tools (optional): ripgrep, curl, git for full tool functionality
First Steps
1. Install the Plugin
Follow the Installation Guide for your package manager.
2. Configure API Keys
Set up API keys for your preferred AI providers:
require('chat').setup({
api_key = {
deepseek = 'sk-xxxxxxxxxxxx',
openai = 'sk-xxxxxxxxxxxx',
},
})
3. Start Chatting
Open the chat window and start your first conversation:
:Chat
Next Steps
After getting started, explore:
- Providers - Configure different AI providers
- Tools - Learn about available tools
- Memory System - Understand the memory architecture
- IM Integration - Connect messaging platforms