mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
plugins/blink-cmp-spell: init
This commit is contained in:
parent
859a97bd8e
commit
7d975e3598
2 changed files with 59 additions and 0 deletions
48
plugins/by-name/blink-cmp-spell/default.nix
Normal file
48
plugins/by-name/blink-cmp-spell/default.nix
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
name = "blink-cmp-spell";
|
||||||
|
package = "blink-cmp-spell";
|
||||||
|
|
||||||
|
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 = {
|
||||||
|
spell = {
|
||||||
|
module = "blink-cmp-spell";
|
||||||
|
name = "Spell";
|
||||||
|
score_offset = 100;
|
||||||
|
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"
|
||||||
|
"spell"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
```
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Configured through blink-cmp
|
||||||
|
callSetup = false;
|
||||||
|
hasLuaConfig = false;
|
||||||
|
hasSettings = false;
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
plugins.blink-cmp-spell.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
defaults = {
|
||||||
|
plugins.blink-cmp-spell = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue