mirror of
https://github.com/don-philipe/dotfiles.git
synced 2026-03-31 02:33:11 +02:00
Switch to parrot as LLM plugin for nvim
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
local ok, vars = pcall(require, 'config.gen-private')
|
||||
if not ok then
|
||||
print("Missing gen-private configuration file.")
|
||||
end
|
||||
|
||||
return {
|
||||
{ "David-Kunz/gen.nvim",
|
||||
opts = {
|
||||
model = vars["model"],
|
||||
host = vars["host"],
|
||||
port = vars["port"],
|
||||
https = vars["https"],
|
||||
show_prompt = true,
|
||||
debug = false,
|
||||
|
||||
-- https://github.com/David-Kunz/gen.nvim/issues/116
|
||||
command = function(options)
|
||||
local body = { model = options.model, stream = true }
|
||||
local schema = "http"
|
||||
if options.https then
|
||||
schema = "https"
|
||||
end
|
||||
return "curl --silent --no-buffer -X POST " .. schema .. "://" .. options.host .. ":" .. options.port .. "/api/chat -d $body"
|
||||
end,
|
||||
}},
|
||||
}
|
||||
4
.config/nvim/lua/plugins/parrot.lua
Normal file
4
.config/nvim/lua/plugins/parrot.lua
Normal file
@@ -0,0 +1,4 @@
|
||||
return {
|
||||
"frankroeder/parrot.nvim",
|
||||
dependencies = { "ibhagwan/fzf-lua", "nvim-lua/plenary.nvim" },
|
||||
}
|
||||
Reference in New Issue
Block a user