Skip to content

Commit 910503b

Browse files
committed
plugins/blink-cmp-words: init
1 parent 2d8db68 commit 910503b

File tree

2 files changed

+75
-0
lines changed

2 files changed

+75
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{ lib, ... }:
2+
lib.nixvim.plugins.mkNeovimPlugin {
3+
name = "blink-cmp-words";
4+
5+
maintainers = [ lib.maintainers.GaetanLepage ];
6+
7+
# Configured through blink-cmp
8+
callSetup = false;
9+
hasLuaConfig = false;
10+
hasSettings = false;
11+
}
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
empty = {
3+
plugins = {
4+
blink-cmp.enable = true;
5+
blink-cmp-words.enable = true;
6+
};
7+
};
8+
9+
example = {
10+
plugins = {
11+
blink-cmp-words.enable = true;
12+
13+
blink-cmp = {
14+
enable = true;
15+
16+
settings = {
17+
sources = {
18+
default = [
19+
"lsp"
20+
"path"
21+
"lazydev"
22+
];
23+
providers = {
24+
thesaurus = {
25+
name = "blink-cmp-words";
26+
module = "blink-cmp-words.thesaurus";
27+
opts = {
28+
score_offset = 0;
29+
definition_pointers = [
30+
"!"
31+
"&"
32+
"^"
33+
];
34+
similarity_pointers = [
35+
"&"
36+
"^"
37+
];
38+
similarity_depth = 2;
39+
};
40+
};
41+
dictionary = {
42+
name = "blink-cmp-words";
43+
module = "blink-cmp-words.dictionary";
44+
opts = {
45+
dictionary_search_threshold = 3;
46+
score_offset = 0;
47+
definition_pointers = [
48+
"!"
49+
"&"
50+
"^"
51+
];
52+
};
53+
};
54+
};
55+
per_filetype = {
56+
text = [ "dictionary" ];
57+
markdown = [ "thesaurus" ];
58+
};
59+
};
60+
};
61+
};
62+
};
63+
};
64+
}

0 commit comments

Comments
 (0)