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 11{ lib , ... } :
2- lib . nixvim . plugins . mkNeovimPlugin {
2+ let
33 name = "blink-cmp-dictionary" ;
4- package = "blink-cmp-dictionary" ;
4+ in
5+ lib . nixvim . plugins . mkNeovimPlugin {
6+ inherit name ;
57
68 maintainers = [ lib . maintainers . khaneliman ] ;
79
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 ;
1213
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 ;
2425 } ;
2526 } ;
2627 } ;
27- };
28- ```
28+ } )
29+ ] ;
2930
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+ }
4435 '' ;
45-
46- # Configured through blink-cmp
47- callSetup = false ;
48- hasLuaConfig = false ;
49- hasSettings = false ;
5036}
You can’t perform that action at this time.
0 commit comments