File tree Expand file tree Collapse file tree 2 files changed +20
-37
lines changed
plugins/by-name/blink-cmp-git
tests/test-sources/plugins/by-name/blink-cmp-git Expand file tree Collapse file tree 2 files changed +20
-37
lines changed Original file line number Diff line number Diff line change 1
1
{ lib , ... } :
2
- lib . nixvim . plugins . mkNeovimPlugin {
2
+ let
3
3
name = "blink-cmp-git" ;
4
- package = "blink-cmp-git" ;
4
+ in
5
+ lib . nixvim . plugins . mkNeovimPlugin {
6
+ inherit name ;
5
7
6
8
maintainers = [ lib . maintainers . khaneliman ] ;
7
9
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
- git = {
18
- module = "blink-cmp-git";
19
- name = "git";
20
- score_offset = 100;
21
- opts = {
22
- commit = { };
23
- git_centers = { git_hub = { }; };
24
- };
25
- };
10
+ imports = [
11
+ ( lib . nixvim . modules . mkBlinkPluginModule {
12
+ pluginName = name ;
13
+ # TODO: compute a sane-default
14
+ sourceName = "git" ;
15
+ settingsExample = {
16
+ score_offset = 100 ;
26
17
} ;
27
- };
28
- ```
29
-
30
- And then you can add it to blink-cmp's `sources.default` option:
18
+ } )
19
+ ] ;
31
20
32
- ```nix
33
- plugins.blink-cmp = {
34
- enable = true;
35
- settings.sources.default = [
36
- "lsp"
37
- "path"
38
- "luasnip"
39
- "buffer"
40
- "git"
41
- ];
21
+ settingsExample = {
22
+ commit = { } ;
23
+ git_centers = {
24
+ git_hub = { } ;
42
25
} ;
43
- ```
44
- '' ;
26
+ } ;
45
27
46
28
# Configured through blink-cmp
47
29
callSetup = false ;
48
30
hasLuaConfig = false ;
49
- hasSettings = false ;
50
31
}
Original file line number Diff line number Diff line change 1
1
{
2
2
empty = {
3
+ plugins . blink-cmp . enable = true ;
3
4
plugins . blink-cmp-git . enable = true ;
4
5
} ;
5
6
6
7
defaults = {
8
+ plugins . blink-cmp . enable = true ;
7
9
plugins . blink-cmp-git = {
8
10
enable = true ;
9
11
} ;
You can’t perform that action at this time.
0 commit comments