mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-09 11:32:22 +00:00
wrapper/rc: clean up option documentation
Some checks failed
Check for typos in the source tree / check-typos (push) Has been cancelled
Some checks failed
Check for typos in the source tree / check-typos (push) Has been cancelled
This commit is contained in:
parent
85347de09d
commit
5749739e4b
1 changed files with 10 additions and 6 deletions
|
@ -3,7 +3,7 @@
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.options) mkOption mkEnableOption literalMD literalExpression;
|
inherit (lib.options) mkOption literalMD literalExpression;
|
||||||
inherit (lib.strings) optionalString;
|
inherit (lib.strings) optionalString;
|
||||||
inherit (lib.types) str bool int enum attrsOf lines listOf either path submodule anything;
|
inherit (lib.types) str bool int enum attrsOf lines listOf either path submodule anything;
|
||||||
inherit (lib.trivial) isBool;
|
inherit (lib.trivial) isBool;
|
||||||
|
@ -19,7 +19,7 @@ in {
|
||||||
default = false;
|
default = false;
|
||||||
example = true;
|
example = true;
|
||||||
description = ''
|
description = ''
|
||||||
[{option}`official documentation`]: https://neovim.io/doc/user/lua.html#vim.loader.enable()
|
[official documentation]: https://neovim.io/doc/user/lua.html#vim.loader.enable()
|
||||||
|
|
||||||
the experimental Lua module loader to speed up the start up process
|
the experimental Lua module loader to speed up the start up process
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ in {
|
||||||
|
|
||||||
::: {.note}
|
::: {.note}
|
||||||
The Lua module loader is *disabled* by default. Before setting this option, please
|
The Lua module loader is *disabled* by default. Before setting this option, please
|
||||||
take a look at the [{option}`official documentation`]. This option may be enabled by
|
take a look at the {option}`[official documentation]`. This option may be enabled by
|
||||||
default in the future.
|
default in the future.
|
||||||
:::
|
:::
|
||||||
'';
|
'';
|
||||||
|
@ -83,7 +83,7 @@ in {
|
||||||
./nvim/my-lua-file.lua
|
./nvim/my-lua-file.lua
|
||||||
|
|
||||||
# source type path - pure and reproducible
|
# source type path - pure and reproducible
|
||||||
(builtins.source {
|
(builtins.path {
|
||||||
path = ./nvim/my-lua-file.lua;
|
path = ./nvim/my-lua-file.lua;
|
||||||
name = "my-lua-file";
|
name = "my-lua-file";
|
||||||
})
|
})
|
||||||
|
@ -274,7 +274,11 @@ in {
|
||||||
vim.opt.runtimepath:append(${listToLuaTable cfg.additionalRuntimePaths})
|
vim.opt.runtimepath:append(${listToLuaTable cfg.additionalRuntimePaths})
|
||||||
''}
|
''}
|
||||||
|
|
||||||
${optionalString cfg.enableLuaLoader "vim.loader.enable()"}
|
${optionalString cfg.enableLuaLoader ''
|
||||||
|
if vim.loader then
|
||||||
|
vim.loader.enable()
|
||||||
|
end
|
||||||
|
''}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
defaultText = literalMD ''
|
defaultText = literalMD ''
|
||||||
|
@ -284,7 +288,7 @@ in {
|
||||||
if [](#opt-vim.enableLuaLoader) is set to true.
|
if [](#opt-vim.enableLuaLoader) is set to true.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
example = literalExpression ''"$${builtins.readFile ./my-lua-config-pre.lua}"'';
|
example = literalExpression ''''${builtins.readFile ./my-lua-config-pre.lua}'';
|
||||||
|
|
||||||
description = ''
|
description = ''
|
||||||
Verbatim lua code that will be inserted **before**
|
Verbatim lua code that will be inserted **before**
|
||||||
|
|
Loading…
Reference in a new issue