Skip to content

Commit 11a80c1

Browse files
committed
plugins/blink-cmp-dictionary: init
1 parent 2061a9a commit 11a80c1

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
}

0 commit comments

Comments
 (0)