File tree Expand file tree Collapse file tree 2 files changed +61
-0
lines changed
plugins/by-name/blink-cmp-dictionary
tests/test-sources/plugins/by-name/blink-cmp-dictionary Expand file tree Collapse file tree 2 files changed +61
-0
lines changed Original file line number Diff line number Diff line change
1
+ { lib , ... } :
2
+ lib . nixvim . plugins . mkNeovimPlugin {
3
+ name = "blink-cmp-dictionary" ;
4
+ package = "blink-cmp-dictionary" ;
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
+ dictionary = {
18
+ module = "blink-cmp-dictionary";
19
+ name = "Dict";
20
+ score_offset = 100;
21
+ min_keyword_length = 3;
22
+ # Optional configurations
23
+ opts = {
24
+ };
25
+ };
26
+ };
27
+ };
28
+ ```
29
+
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
+ ```
44
+ '' ;
45
+
46
+ # Configured through blink-cmp
47
+ callSetup = false ;
48
+ hasLuaConfig = false ;
49
+ hasSettings = false ;
50
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ empty = {
3
+ plugins . blink-cmp-dictionary . enable = true ;
4
+ } ;
5
+
6
+ defaults = {
7
+ plugins . blink-cmp-dictionary = {
8
+ enable = true ;
9
+ } ;
10
+ } ;
11
+ }
You can’t perform that action at this time.
0 commit comments