nix-community.nixvim/plugins/by-name/blink-emoji/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1 KiB
Nix
Raw Normal View History

2025-02-05 12:26:20 -06:00
{ lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "blink-emoji";
2025-02-09 11:18:11 -06:00
packPathName = "blink-emoji.nvim";
2025-02-05 12:26:20 -06:00
package = "blink-emoji-nvim";
maintainers = [ lib.maintainers.khaneliman ];
description = ''
2025-06-18 02:42:47 +03:00
Emoji source for the blink-cmp.
---
2025-02-05 12:26:20 -06:00
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;
}