A Neovim plugin for integrating xAI-powered chat and code analysis directly into your Neovim.
This plugin provides AI-assisted features like chat conversations, codebase analysis, and history management. It uses an external xai
command-line tool for AI interactions.
Using native package management in neovim v0.12
vim.pack.add({
"https://github.com/namnd/xai.nvim",
})
:XaiChat
- Open a new chat window.:XaiAnalyze [files]
- Analyze files or the current directory (e.g.,:XaiChatAnalyze lua/xai.lua
).:XaiHistory
- View and resume chat history.- In chat mode, press
<Shift-CR>
to submit messages.
No setup required
MIT
- The simplest ChatGPT interface for Neovim by Greg Hurrell
- shellbot
- json.lua