mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
misc: ensure all options have a description
This commit is contained in:
parent
3be9db71c2
commit
7a2d065cce
13 changed files with 127 additions and 43 deletions
|
@ -71,18 +71,23 @@ in
|
|||
|
||||
fromVscode = mkOption {
|
||||
default = [ ];
|
||||
example = ''
|
||||
example = literalExpression ''
|
||||
[
|
||||
{}
|
||||
{
|
||||
paths = ./path/to/snippets;
|
||||
}
|
||||
]
|
||||
# generates:
|
||||
#
|
||||
# require("luasnip.loaders.from_vscode").lazy_load({})
|
||||
# require("luasnip.loaders.from_vscode").lazy_load({['paths'] = {'/nix/store/.../path/to/snippets'}})
|
||||
#
|
||||
{ }
|
||||
{ paths = ./path/to/snippets; }
|
||||
]'';
|
||||
description = ''
|
||||
List of custom vscode style snippets to load.
|
||||
|
||||
For example,
|
||||
```nix
|
||||
[ {} { paths = ./path/to/snippets; } ]
|
||||
```
|
||||
will generate the following lua:
|
||||
```lua
|
||||
require("luasnip.loaders.from_vscode").lazy_load({})
|
||||
require("luasnip.loaders.from_vscode").lazy_load({['paths'] = {'/nix/store/.../path/to/snippets'}})
|
||||
```
|
||||
'';
|
||||
type = types.listOf loaderSubmodule;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue