From 6d71f7a6f68a2289c3f8d0779e945fc444e59008 Mon Sep 17 00:00:00 2001 From: albert Date: Tue, 17 Dec 2024 20:23:59 +0100 Subject: [PATCH] Testing ollama.nvim --- home-manager/common/software/cli/nixvim.nix | 4 ++++ home-manager/common/software/cli/nixvim/keymaps.nix | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/home-manager/common/software/cli/nixvim.nix b/home-manager/common/software/cli/nixvim.nix index 341f3caf..2e93c3e2 100644 --- a/home-manager/common/software/cli/nixvim.nix +++ b/home-manager/common/software/cli/nixvim.nix @@ -36,6 +36,10 @@ diagnostics.virtual_lines.only_current_line = true; plugins = { + ollama = { + enable = true; + model = "vanilj/Phi-4"; + }; lsp-lines.enable = true; crates-nvim.enable = true; lspsaga = { diff --git a/home-manager/common/software/cli/nixvim/keymaps.nix b/home-manager/common/software/cli/nixvim/keymaps.nix index 69c41977..34c0aadb 100644 --- a/home-manager/common/software/cli/nixvim/keymaps.nix +++ b/home-manager/common/software/cli/nixvim/keymaps.nix @@ -76,5 +76,9 @@ (nmap "mc" ":MCclear" // desc "[C]lear Multicorsor") (nmap "mu" ":MCunderCursor" // desc "Select [U]nder Corsor") (nmap "mp" ":MCpattern" // desc "Select [P]attern") + # Ollama + (nmap "os" ":OllamaServe" // desc "Ollama [S]erve") + (nmap "op" ":Ollama" // desc "Ollama [P]rompt") + (nmap "om" ":OllamaModel" // desc "Ollama [M]odel") ]; }