From eecea2aa7bb9336d61805d34d91163f61c2153aa Mon Sep 17 00:00:00 2001 From: "RingOfStorms (Joshua Bell)" Date: Wed, 6 Dec 2023 17:08:01 -0600 Subject: [PATCH] update gen plugin a bit --- lua/plugins/gen-ollama.lua | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/lua/plugins/gen-ollama.lua b/lua/plugins/gen-ollama.lua index fd6170f..0a02c5b 100644 --- a/lua/plugins/gen-ollama.lua +++ b/lua/plugins/gen-ollama.lua @@ -13,6 +13,11 @@ return { end, }) end, + opts = { + model = "wizard-vicuna-uncensored", + -- show_prompt = true, + show_model = true, + }, config = function(_, opts) local g = require("gen") g.setup(opts) @@ -28,12 +33,14 @@ return { g.prompts = { -- https://github.com/David-Kunz/gen.nvim/blob/main/lua/gen/prompts.lua Prompt_Code_Completion = { - prompt = "Write code that meets these requirements: $input\nOnly output the result in format ```$filetype\n...\n```", + prompt = + "Write code that meets these requirements: $input\nOnly output the result in format ```$filetype\n...\n```", replace = true, extract = "```$filetype\n(.-)```", }, Replace_Code_Completion = { - prompt = "Rewrite the following code, follow any comment instructions.\nOnly output the result in format ```$filetype\n...\n```:\n```$filetype\n$text\n```", + prompt = + "Rewrite the following code, follow any comment instructions.\nOnly output the result in format ```$filetype\n...\n```:\n```$filetype\n$text\n```", replace = true, extract = "```$filetype\n(.-)```", }, @@ -71,7 +78,7 @@ return { mode = { "n", "v", "x" }, }, { - "xcc", + "xi", "Gen Prompt_And_Answer_Inline", desc = "Prompt and answer inline at cursor", mode = { "n", "v", "x" },