Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ollama

URL: https://github.com/nomnivore/ollama.nvim/

Maintainers: Gaetan Lepage

plugins.ollama.enable

Whether to enable ollama.

Type: boolean

Default: false

Example: true

Declared by:

plugins.ollama.package

The ollama package to use.

Type: package

Default: pkgs.vimPlugins.ollama-nvim

Declared by:

plugins.ollama.autoLoad

Whether to automatically load ollama when neovim starts.

Type: boolean

Default: false when lazy-loading is enabled.

Example: false

Declared by:

plugins.ollama.settings

Options provided to the require('ollama').setup function.

Type: lua value

Default: { }

Example:

{
  action = "display";
  model = "mistral";
  prompts = {
    my-prompt = {
      action = "display";
      extract = ''
        ```$ftype
        (.-)```'';
      format = "json";
      input_label = "> ";
      model = "foo";
      options = {
        mirostat_eta = 0.1;
        num_thread = 8;
        repeat_last_n = -1;
        stop = "arrêt";
      };
      prompt = "Hello $input $sel. J'aime le fromage.";
      system = "system";
    };
  };
  serve = {
    args = [
      "serve"
    ];
    command = "ollama";
    on_start = false;
    stop_args = [
      "-SIGTERM"
      "ollama"
    ];
    stop_command = "pkill";
  };
  url = "http://127.0.0.1:11434";
}

Declared by: