Skip to content

Commit

Permalink
plugins/blink-emoji: init
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman authored Feb 5, 2025
1 parent cf01c02 commit d5406e5
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
50 changes: 50 additions & 0 deletions plugins/by-name/blink-emoji/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{ lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "blink-emoji";
package = "blink-emoji-nvim";

maintainers = [ lib.maintainers.khaneliman ];

description = ''
This plugin should be configured through blink-cmp's `sources.providers` settings.
For example:
```nix
plugins.blink-cmp = {
enable = true;
settings.sources.providers = {
emoji = {
module = "blink-emoji";
name = "Emoji";
score_offset = 15;
# Optional configurations
opts = {
insert = true;
};
};
};
};
```
And then you can add it to blink-cmp's `sources.default` option:
```nix
plugins.blink-cmp = {
enable = true;
settings.sources.default = [
"lsp"
"path"
"luasnip"
"buffer"
"emoji"
];
};
```
'';

# Configured through blink-cmp
callSetup = false;
hasLuaConfig = false;
hasSettings = false;
}
11 changes: 11 additions & 0 deletions tests/test-sources/plugins/by-name/blink-emoji/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
empty = {
plugins.blink-emoji.enable = true;
};

defaults = {
plugins.blink-emoji = {
enable = true;
};
};
}

0 comments on commit d5406e5

Please sign in to comment.