parrot
URL: https://github.com/frankroeder/parrot.nvim/
Maintainers: Gaetan Lepage
plugins.parrot.enable
Whether to enable parrot.nvim.
Type: boolean
Default:
false
Example:
true
Declared by:
plugins.parrot.package
The parrot.nvim package to use.
Type: package
Default:
pkgs.vimPlugins.parrot-nvim
Declared by:
plugins.parrot.autoLoad
Whether to automatically load parrot.nvim when neovim starts.
Type: boolean
Default:
false
when lazy-loading is enabled.
Example:
false
Declared by:
plugins.parrot.settings
Options provided to the require('parrot').setup
function.
Type: attribute set of anything
Default:
{ }
Example:
{
cmd_prefix = "Parrot";
providers = {
github = {
api_key.__raw = "os.getenv 'GITHUB_TOKEN'";
topic.model = "gpt-4o";
};
};
hooks = {
Ask.__raw = ''
function(parrot, params)
local template = "Please, answer to this question: {{command}}."
local model_obj = parrot.get_model("command")
parrot.logger.info("Asking model: " .. model_obj.name)
parrot.Prompt(params, parrot.ui.Target.popup, model_obj, "🤖 Ask ~ ", template)
end
'';
};
};
Declared by: