plugins/blink-cmp-avante: init

This commit is contained in:
Gaetan Lepage 2025-12-28 22:47:53 +01:00 committed by Matt Sturgeon
parent e3e6ba21ab
commit 63c9576037
2 changed files with 86 additions and 0 deletions

View file

@ -0,0 +1,51 @@
{ lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "blink-cmp-avante";
maintainers = [ lib.maintainers.GaetanLepage ];
description = ''
Avante source for blink-cmp.
---
This plugin should be configured through blink-cmp's `sources.providers` settings.
For example:
```nix
plugins.blink-cmp = {
enable = true;
settings.sources.providers = {
avante = {
module = "blink-cmp-avante";
name = "Avante";
opts = {
# options for blink-cmp-avante
};
};
};
};
```
And then you can add it to blink-cmp's `sources.default` option:
```nix
plugins.blink-cmp = {
enable = true;
settings.sources.default = [
"lsp"
"path"
"luasnip"
"buffer"
"avante"
];
};
```
'';
# Configured through blink-cmp
callSetup = false;
hasLuaConfig = false;
hasSettings = false;
}

View file

@ -0,0 +1,35 @@
{
empty = {
plugins = {
blink-cmp.enable = true;
blink-cmp-avante.enable = true;
};
};
example = {
plugins = {
blink-cmp-avante.enable = true;
blink-cmp = {
enable = true;
settings = {
sources = {
default = [
"avante"
"lsp"
"path"
"buffer"
];
providers = {
avante = {
module = "blink-cmp-avante";
name = "Avante";
opts = { };
};
};
};
};
};
};
};
}