mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
51 lines
1 KiB
Nix
51 lines
1 KiB
Nix
{ lib, ... }:
|
|
lib.nixvim.plugins.mkNeovimPlugin {
|
|
name = "blink-emoji";
|
|
packPathName = "blink-emoji.nvim";
|
|
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;
|
|
}
|