Skip to content

Commit d5406e5

Browse files
authored
plugins/blink-emoji: init
1 parent cf01c02 commit d5406e5

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-emoji";
4+
package = "blink-emoji-nvim";
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+
emoji = {
18+
module = "blink-emoji";
19+
name = "Emoji";
20+
score_offset = 15;
21+
# Optional configurations
22+
opts = {
23+
insert = true;
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+
"emoji"
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-emoji.enable = true;
4+
};
5+
6+
defaults = {
7+
plugins.blink-emoji = {
8+
enable = true;
9+
};
10+
};
11+
}

0 commit comments

Comments
 (0)