mirror of
https://github.com/nix-community/nixvim.git
synced 2025-12-23 17:31:13 +01:00
docs: format nix examples in options
This commit is contained in:
parent
d52007581e
commit
297e2e0b65
17 changed files with 293 additions and 265 deletions
|
|
@ -15,33 +15,37 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
For example:
|
||||
|
||||
```nix
|
||||
plugins.blink-cmp = {
|
||||
enable = true;
|
||||
settings.sources.providers = {
|
||||
spell = {
|
||||
module = "blink-cmp-spell";
|
||||
name = "Spell";
|
||||
score_offset = 100;
|
||||
opts = {
|
||||
{
|
||||
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"
|
||||
];
|
||||
};
|
||||
{
|
||||
plugins.blink-cmp = {
|
||||
enable = true;
|
||||
settings.sources.default = [
|
||||
"lsp"
|
||||
"path"
|
||||
"luasnip"
|
||||
"buffer"
|
||||
"spell"
|
||||
];
|
||||
};
|
||||
}
|
||||
```
|
||||
'';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue