mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
plugins/minuet: init
This commit is contained in:
parent
07b7f67aba
commit
e83c7fc2e7
2 changed files with 126 additions and 0 deletions
30
plugins/by-name/minuet/default.nix
Normal file
30
plugins/by-name/minuet/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ lib, ... }:
|
||||
lib.nixvim.plugins.mkNeovimPlugin {
|
||||
name = "minuet";
|
||||
packPathName = "minuet-ai.nvim";
|
||||
package = "minuet-ai-nvim";
|
||||
|
||||
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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue