Files
neovim-config/lua/taken/plugins/gen.lua
Taken 9556024c93 Added types
Signed-off-by: Taken <taken@mairimashita.org>
2024-03-17 16:34:11 +01:00

25 lines
626 B
Lua

--- @type LazyPluginSpec
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,
},
}