mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
plugins/blink-cmp-dictionary: init
This commit is contained in:
parent
2061a9ad95
commit
11a80c1a80
2 changed files with 61 additions and 0 deletions
50
plugins/by-name/blink-cmp-dictionary/default.nix
Normal file
50
plugins/by-name/blink-cmp-dictionary/default.nix
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
name = "blink-cmp-dictionary";
|
||||||
|
package = "blink-cmp-dictionary";
|
||||||
|
|
||||||
|
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 = {
|
||||||
|
dictionary = {
|
||||||
|
module = "blink-cmp-dictionary";
|
||||||
|
name = "Dict";
|
||||||
|
score_offset = 100;
|
||||||
|
min_keyword_length = 3;
|
||||||
|
# Optional configurations
|
||||||
|
opts = {
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
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"
|
||||||
|
"dictionary"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
```
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Configured through blink-cmp
|
||||||
|
callSetup = false;
|
||||||
|
hasLuaConfig = false;
|
||||||
|
hasSettings = false;
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
plugins.blink-cmp-dictionary.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
defaults = {
|
||||||
|
plugins.blink-cmp-dictionary = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue