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") ]; }