mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-26 18:58:43 +02:00
misc: fix documentation generation
This commit is contained in:
parent
794356625c
commit
be6a29c800
2 changed files with 98 additions and 101 deletions
|
@ -609,7 +609,10 @@ in {
|
||||||
nowait = helpers.defaultNullOpts.mkBool true "nowait";
|
nowait = helpers.defaultNullOpts.mkBool true "nowait";
|
||||||
};
|
};
|
||||||
|
|
||||||
mappings = mkMappingsOption ''
|
mappings =
|
||||||
|
mkMappingsOption
|
||||||
|
''
|
||||||
|
```
|
||||||
{
|
{
|
||||||
"<space>" = {
|
"<space>" = {
|
||||||
command = "toggle_node";
|
command = "toggle_node";
|
||||||
|
@ -657,10 +660,12 @@ in {
|
||||||
"<" = "prev_source";
|
"<" = "prev_source";
|
||||||
">" = "next_source";
|
">" = "next_source";
|
||||||
}
|
}
|
||||||
|
```
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
filesystem = helpers.mkCompositeOption "Filesystem options" {
|
filesystem = helpers.mkCompositeOption "Filesystem options" {
|
||||||
window = mkWindowMappingsOption ''
|
window = mkWindowMappingsOption (lib.mdDoc ''
|
||||||
|
```
|
||||||
{
|
{
|
||||||
H = "toggle_hidden";
|
H = "toggle_hidden";
|
||||||
"/" = "fuzzy_finder";
|
"/" = "fuzzy_finder";
|
||||||
|
@ -675,7 +680,8 @@ in {
|
||||||
"[g" = "prev_git_modified";
|
"[g" = "prev_git_modified";
|
||||||
"]g" = "next_git_modified";
|
"]g" = "next_git_modified";
|
||||||
}
|
}
|
||||||
'';
|
```
|
||||||
|
'');
|
||||||
asyncDirectoryScan = helpers.defaultNullOpts.mkEnumFirstDefault ["auto" "always" "never"] ''
|
asyncDirectoryScan = helpers.defaultNullOpts.mkEnumFirstDefault ["auto" "always" "never"] ''
|
||||||
- "auto" means refreshes are async, but it's synchronous when called from the Neotree
|
- "auto" means refreshes are async, but it's synchronous when called from the Neotree
|
||||||
commands.
|
commands.
|
||||||
|
@ -719,48 +725,39 @@ in {
|
||||||
"only works on Windows for hidden files/directories";
|
"only works on Windows for hidden files/directories";
|
||||||
|
|
||||||
hideByName =
|
hideByName =
|
||||||
helpers.defaultNullOpts.mkNullable (types.listOf types.str) ''
|
helpers.defaultNullOpts.mkNullable (types.listOf types.str)
|
||||||
[
|
''[".DS_Store" "thumbs.db"]''
|
||||||
".DS_Store"
|
|
||||||
"thumbs.db"
|
|
||||||
# "node_modules"
|
|
||||||
]
|
|
||||||
''
|
|
||||||
"hide by name";
|
"hide by name";
|
||||||
|
|
||||||
hideByPattern =
|
hideByPattern = helpers.defaultNullOpts.mkNullable (types.listOf types.str) "[]" ''
|
||||||
helpers.defaultNullOpts.mkNullable (types.listOf types.str) ''
|
Hide by pattern.
|
||||||
[
|
|
||||||
# "*.meta"
|
|
||||||
# "*/src/*/tsconfig.json"
|
|
||||||
]
|
|
||||||
''
|
|
||||||
"hide by pattern";
|
|
||||||
|
|
||||||
alwaysShow =
|
Example:
|
||||||
helpers.defaultNullOpts.mkNullable (types.listOf types.str) ''
|
```
|
||||||
[
|
[
|
||||||
# ".gitignored"
|
"*.meta"
|
||||||
|
"*/src/*/tsconfig.json"
|
||||||
]
|
]
|
||||||
''
|
```
|
||||||
"files/folders to always show";
|
'';
|
||||||
|
|
||||||
neverShow =
|
alwaysShow = helpers.defaultNullOpts.mkNullable (types.listOf types.str) "[]" ''
|
||||||
helpers.defaultNullOpts.mkNullable (types.listOf types.str) ''
|
Files/folders to always show.
|
||||||
[
|
|
||||||
# ".DS_Store"
|
|
||||||
# "thumbs.db"
|
|
||||||
]
|
|
||||||
''
|
|
||||||
"files/folders to never show";
|
|
||||||
|
|
||||||
neverShowByPattern =
|
Example: `[".gitignore"]`
|
||||||
helpers.defaultNullOpts.mkNullable (types.listOf types.str) ''
|
'';
|
||||||
[
|
|
||||||
# ".null-ls_*"
|
neverShow = helpers.defaultNullOpts.mkNullable (types.listOf types.str) "[]" ''
|
||||||
]
|
Files/folders to never show.
|
||||||
''
|
|
||||||
"files/folders to never show (by pattern)";
|
Example: `[".DS_Store" "thumbs.db"]`
|
||||||
|
'';
|
||||||
|
|
||||||
|
neverShowByPattern = helpers.defaultNullOpts.mkNullable (types.listOf types.str) "[]" ''
|
||||||
|
Files/folders to never show (by pattern).
|
||||||
|
|
||||||
|
Example: `[".null-ls_*"]`
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
findByFullPathWords = helpers.defaultNullOpts.mkBool false ''
|
findByFullPathWords = helpers.defaultNullOpts.mkBool false ''
|
||||||
|
|
|
@ -284,7 +284,7 @@ in {
|
||||||
latex = {
|
latex = {
|
||||||
commands = helpers.defaultNullOpts.mkNullable (with types; attrsOf str) "{}" ''
|
commands = helpers.defaultNullOpts.mkNullable (with types; attrsOf str) "{}" ''
|
||||||
List of LATEX commands to be handled by the LATEX parser, listed together with empty arguments
|
List of LATEX commands to be handled by the LATEX parser, listed together with empty arguments
|
||||||
(e.g., "\ref{}", "\documentclass[]{}").
|
(e.g., `"ref{}"`, `"\documentclass[]{}"`).
|
||||||
|
|
||||||
This setting is an attrs with the commands as keys and corresponding actions as values.
|
This setting is an attrs with the commands as keys and corresponding actions as values.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue