Giter Club home page Giter Club logo

oatmeal.nvim's Introduction

Oatmeal.nvim

oatmeal

Terminal UI to chat with large language models (LLM) using different model backends, and with a plugin for Neovim!

Overview

Oatmeal is a terminal UI chat application that speaks with LLMs, complete with slash commands for familiar usage. It features agnostic backends to allow switching between the powerhouse of ChatGPT, or keeping things private with Ollama. This plugin provides a direct integration with Oatmeal directly from Neovim!

See it in action (click to restart):

oatmeal-demo

Note: This project is still quite new, and LLM's can return unexpected answers the UI isn't prepped for. There's likely a few bugs hidden somewhere.

Install

You must have Oatmeal installed on your system in order to use the plugin. See the main Oatmeal repo for installation details.

Neovim >=0.9.2 is required

lazy.nvim

{
    "dustinblackman/oatmeal.nvim",
    cmd = { "Oatmeal" },
    keys = {
        { "<leader>om", mode = "n", desc = "Start Oatmeal session" },
    },
    opts = {
        backend = "ollama",
        model = "codellama:latest",
    },
},

packer

use {
    "dustinblackman/oatmeal.nvim",
    config = function()
        require("oatmeal").setup({
            backend = "ollama",
            model = "codellama:latest",
        })
    end
}

Default Configuration

All configuration variables are optional with defaults. All CLI options will default to what is set in the tool itself.

{
    -- Set to empty string to disable.
    hotkey = "<leader>om",
    close_terminal_on_quit = true

    -- CLI
    backend = "",
    model = "",
    theme = "",
    theme_file = "",
    ollama_url = "",
    openai_url = "",
    openai_token = "",
}

Usage

To start up a chat session, set your cursor where you'd like new code submissions to be appended, or highlight code you'd like to discuss with your model. After either run the :Oatmeal command or hit the <leader>om hotkey to start!

Once in a session, run /help to see further commands, or checkout the main Oatmeal repo for details.

License

MIT

oatmeal.nvim's People

Contributors

dsully avatar dustinblackman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.