Added gen.nvim

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2024-03-06 12:45:03 +01:00
parent bf4c79ff0d
commit f56abeaf5b

23
lua/taken/plugins/gen.lua Normal file
View File

@@ -0,0 +1,23 @@
return {
"David-Kunz/gen.nvim",
cmd = "Gen",
opts = {
model = "llama2",
host = "localhost",
port = "11434",
display_mode = "float",
show_prompt = false,
show_model = true,
no_auto_close = false,
init = function(options)
pcall(io.popen, "ollama serve")
end,
command = function(options)
return "curl --silent --no-buffer -X POST http://"
.. options.host
.. ":"
.. options.port
.. "/api/chat -d $body"
end,
},
}