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