File tree Expand file tree Collapse file tree 2 files changed +20
-37
lines changed
plugins/by-name/blink-emoji
tests/test-sources/plugins/by-name/blink-emoji Expand file tree Collapse file tree 2 files changed +20
-37
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-emoji" ;
4
+ in
5
+ lib . nixvim . plugins . mkNeovimPlugin {
6
+ inherit name ;
4
7
packPathName = "blink-emoji.nvim" ;
5
8
package = "blink-emoji-nvim" ;
6
9
7
10
maintainers = [ lib . maintainers . khaneliman ] ;
8
11
9
- description = ''
10
- This plugin should be configured through blink-cmp's `sources.providers` settings.
11
-
12
- For example:
13
-
14
- ```nix
15
- plugins.blink-cmp = {
16
- enable = true;
17
- settings.sources.providers = {
18
- emoji = {
19
- module = "blink-emoji";
20
- name = "Emoji";
21
- score_offset = 15;
22
- # Optional configurations
23
- opts = {
24
- insert = true;
25
- };
26
- };
12
+ imports = [
13
+ ( lib . nixvim . modules . mkBlinkPluginModule {
14
+ pluginName = name ;
15
+ # TODO: compute a sane-default
16
+ key = "emoji" ;
17
+ sourceName = "Emoji" ;
18
+ module = "blink-emoji" ;
19
+ settingsExample = {
20
+ score_offset = 15 ;
27
21
} ;
28
- };
29
- ```
30
-
31
- And then you can add it to blink-cmp's `sources.default` option:
22
+ } )
23
+ ] ;
32
24
33
- ```nix
34
- plugins.blink-cmp = {
35
- enable = true;
36
- settings.sources.default = [
37
- "lsp"
38
- "path"
39
- "luasnip"
40
- "buffer"
41
- "emoji"
42
- ];
43
- };
44
- ```
45
- '' ;
25
+ settingsExample = {
26
+ insert = true ;
27
+ } ;
46
28
47
29
# Configured through blink-cmp
48
30
callSetup = false ;
49
31
hasLuaConfig = false ;
50
- hasSettings = false ;
51
32
}
Original file line number Diff line number Diff line change 1
1
{
2
2
empty = {
3
+ plugins . blink-cmp . enable = true ;
3
4
plugins . blink-emoji . enable = true ;
4
5
} ;
5
6
6
7
defaults = {
8
+ plugins . blink-cmp . enable = true ;
7
9
plugins . blink-emoji = {
8
10
enable = true ;
9
11
} ;
You can’t perform that action at this time.
0 commit comments