mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-07 15:54:31 +02:00
Some checks are pending
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Version info (push) Waiting to run
Documentation / Build (push) Blocked by required conditions
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Deploy (push) Blocked by required conditions
31 lines
798 B
Nix
31 lines
798 B
Nix
{ lib, ... }:
|
|
lib.nixvim.plugins.mkNeovimPlugin {
|
|
name = "minuet";
|
|
packPathName = "minuet-ai.nvim";
|
|
package = "minuet-ai-nvim";
|
|
description = "A Neovim plugin that provides AI-powered code completion and suggestions.";
|
|
|
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
|
|
|
# Register nvim-cmp association
|
|
imports = [
|
|
{ cmpSourcePlugins.minuet = "minuet"; }
|
|
];
|
|
|
|
settingsExample = {
|
|
provider = "openai_compatible";
|
|
provider_options = {
|
|
openai_compatible = {
|
|
api_key = "OPENROUTER_API_KEY";
|
|
end_point = "https://openrouter.ai/api/v1/chat/completions";
|
|
name = "OpenRouter";
|
|
model = "google/gemini-flash-1.5";
|
|
stream = true;
|
|
optional = {
|
|
max_tokens = 256;
|
|
top_p = 0.9;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|