return { "nomnivore/ollama.nvim", dependencies = { "nvim-lua/plenary.nvim", }, -- All the user commands added by the plugin cmd = { "Ollama", "OllamaModel", "OllamaServe", "OllamaServeStop" }, keys = { -- Sample keybind for prompt menu. Note that the is important for selections to work properly. { "oo", ":lua require('ollama').prompt()", desc = "ollama prompt", mode = { "n", "v" }, }, -- Sample keybind for direct prompting. Note that the is important for selections to work properly. { "oG", ":lua require('ollama').prompt('Generate_Code')", desc = "ollama Generate Code", mode = { "n", "v" }, }, }, ---@type Ollama.Config opts = { model = "codellama-gpu-25-cpu-2", url = "factory.lan:11434", serve = { on_start = false, command = "ollama", args = { "serve" }, stop_command = "pkill", stop_args = { "-SIGTERM", "ollama" }, }, -- View the actual default prompts in ./lua/ollama/prompts.lua prompts = { Sample_Prompt = { prompt = "This is a sample prompt that receives $input and $sel(ection), among others.", input_label = "> ", model = "mistral", action = "display", } } } }