File tree Expand file tree Collapse file tree 2 files changed +73
-0
lines changed
plugins/by-name/blink-copilot
tests/test-sources/plugins/by-name/blink-copilot Expand file tree Collapse file tree 2 files changed +73
-0
lines changed Original file line number Diff line number Diff line change
1
+ { lib , ... } :
2
+ lib . nixvim . plugins . mkNeovimPlugin {
3
+ name = "blink-copilot" ;
4
+ package = "blink-copilot" ;
5
+
6
+ maintainers = [ lib . maintainers . khaneliman ] ;
7
+
8
+ description = ''
9
+ This plugin should be configured through blink-cmp's `sources.providers` settings.
10
+
11
+ For example:
12
+
13
+ ```nix
14
+ plugins.blink-cmp = {
15
+ enable = true;
16
+ settings.sources.providers = {
17
+ copilot = {
18
+ async = true;
19
+ module = "blink-copilot";
20
+ name = "copilot";
21
+ score_offset = 100;
22
+ # Optional configurations
23
+ opts = {
24
+ max_completions = 3;
25
+ max_attempts = 4;
26
+ kind = "Copilot";
27
+ debounce = 750;
28
+ auto_refresh = {
29
+ backward = true;
30
+ forward = true;
31
+ };
32
+ };
33
+ };
34
+ };
35
+ };
36
+ ```
37
+
38
+ And then you can add it to blink-cmp's `sources.default` option:
39
+
40
+ ```nix
41
+ plugins.blink-cmp = {
42
+ enable = true;
43
+ settings.sources.default = [
44
+ "lsp"
45
+ "path"
46
+ "luasnip"
47
+ "buffer"
48
+ "copilot"
49
+ ];
50
+ };
51
+ ```
52
+ '' ;
53
+
54
+ # Configured through blink-cmp
55
+ callSetup = false ;
56
+ hasLuaConfig = false ;
57
+ hasSettings = false ;
58
+
59
+ extraConfig = {
60
+ plugins . copilot-lua . enable = lib . mkDefault true ;
61
+ } ;
62
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ empty = {
3
+ plugins . blink-copilot . enable = true ;
4
+ } ;
5
+
6
+ defaults = {
7
+ plugins . blink-copilot = {
8
+ enable = true ;
9
+ } ;
10
+ } ;
11
+ }
You can’t perform that action at this time.
0 commit comments