mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
lib/vim-plugin: fix + improve settings example (#1774)
`foo_bar = true` -> `${prefix}foo_bar=1` is incorrect and confusing.
See related issue #1741
(cherry picked from commit b0d8c00264
)
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
This commit is contained in:
parent
8f52e4d1e3
commit
2bc337ace2
1 changed files with 5 additions and 6 deletions
|
@ -54,12 +54,11 @@ with lib;
|
||||||
description = ''
|
description = ''
|
||||||
The configuration options for **${name}** without the `${globalPrefix}` prefix.
|
The configuration options for **${name}** without the `${globalPrefix}` prefix.
|
||||||
|
|
||||||
Example: To set `${globalPrefix}foo_bar` to `1`, write
|
For example, the following settings are equivialent to these `:setglobal` commands:
|
||||||
```nix
|
- `foo_bar = 1` -> `:setglobal ${globalPrefix}foo_bar=1`
|
||||||
settings = {
|
- `hello = "world"` -> `:setglobal ${globalPrefix}hello="world"`
|
||||||
foo_bar = true;
|
- `some_toggle = true` -> `:setglobal ${globalPrefix}some_toggle`
|
||||||
};
|
- `other_toggle = false` -> `:setglobal no${globalPrefix}other_toggle`
|
||||||
```
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue