Skip to content

Ollero is a nvim plugin for integrating `ollama` with neovim locally

Notifications You must be signed in to change notification settings

marco-souza/ollero.nvim

Repository files navigation

👁️llero 🦙

Latest release Last commit Latest Neovim Made with Lua

Ollero (ollero.nvim) is a Neovim Plugin that unleashes Ollama powers to your text editor.

🚀 Features

  • interact with offline LLM using Ollama - https://ollama.com/
  • manage Ollama models in Neovim
  • Chat with the default model using <M-a>
  • selected to prompt using <M-s>
  • list online and offline models
  • build and run custom ollama modelfile
  • generate Modelfile based on prompt input _(using marco-souza/omg)

Demo

https://www.loom.com/share/a61362b16dc94c4b82426a03f0797099

Dependencies

Ollero run ollama, so you must have ollama installed and running on your machine.

Also, this plugin relies on some other libraries that should be listed as dependencies

-- Lazy plugin
{
  "marco-souza/ollero.nvim",
  build = ":!go install github.com/marco-souza/omg@latest",
  dependencies = {
    "nvim-lua/plenary.nvim",
    "marco-souza/term.nvim",
    "nvim-telescope/telescope-ui-select.nvim",
  },
  config = true,
},

Usage

Install it with your plugin manager, then add a keymap to the following command:

## Commands

# managing ollama models
:InstallModel
:RemoveModel
:ListModels
:RunModel

# interact with models
:Chat
:Ask

# custom model files
:CreateModel
:BuildModel