#616 · Primary category: AI Coding Assistants

ollama.nvim

A plugin for managing and integrating your ollama workflows in neovim.

Project last updated:08/10/24

GitHub Stars

563

Forks

33

Contributors

5

License

MIT

Why we included this project

ollama.nvim is a small plugin that connects Neovim to an Ollama server over HTTP, so you can prompt a local model without leaving your editor. The server can run on your machine, in a container, or on a separate box, and the plugin gives you commands to pick a model, start or stop the server, and fire off a prompt. What makes it useful is how it brings your buffer into the request: tokens like $sel, $buf, $before, and $ftype let you send the current selection, the whole file, or the code around your cursor, and the built-in actions can stream the reply into a floating window or replace the selected text. You can also define your own prompts and actions in your config, which is handy for building repeatable workflows such as explaining a function or generating code from a comment. It's a focused tool for people who already know their way around Neovim, not a full assistant, and that's exactly what makes it a good lightweight bridge to Ollama.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category