mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 15:06:45 +00:00
wrapper/rc: document enableLuaLoader
better; link to docs
This commit is contained in:
parent
eb8d75a4ae
commit
be0fd17510
1 changed files with 12 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.options) mkOption mkEnableOption literalMD literalExpression;
|
inherit (lib.options) mkOption mkEnableOption literalMD literalExpression;
|
||||||
inherit (lib.strings) optionalString;
|
inherit (lib.strings) optionalString;
|
||||||
inherit (lib.types) str oneOf attrs lines listOf either path;
|
inherit (lib.types) str oneOf attrs lines listOf either path bool;
|
||||||
inherit (lib.nvim.types) dagOf;
|
inherit (lib.nvim.types) dagOf;
|
||||||
inherit (lib.nvim.lua) listToLuaTable;
|
inherit (lib.nvim.lua) listToLuaTable;
|
||||||
cfg = config.vim;
|
cfg = config.vim;
|
||||||
|
@ -13,6 +13,15 @@ in {
|
||||||
options.vim = {
|
options.vim = {
|
||||||
enableLuaLoader = mkEnableOption ''
|
enableLuaLoader = mkEnableOption ''
|
||||||
the experimental Lua module loader to speed up the start up process
|
the experimental Lua module loader to speed up the start up process
|
||||||
|
|
||||||
|
If `true`, this will enable the experimental Lua module loader which:
|
||||||
|
- overrides loadfile
|
||||||
|
- adds the lua loader using the byte-compilation cache
|
||||||
|
- adds the libs loader
|
||||||
|
- removes the default Neovim loader
|
||||||
|
|
||||||
|
This is disabled by default. Before setting this option, please
|
||||||
|
take a look at the [{option}`official documentation`](https://neovim.io/doc/user/lua.html#vim.loader.enable()).
|
||||||
'';
|
'';
|
||||||
|
|
||||||
additionalRuntimePaths = mkOption {
|
additionalRuntimePaths = mkOption {
|
||||||
|
@ -20,10 +29,11 @@ in {
|
||||||
default = [];
|
default = [];
|
||||||
example = literalExpression ''
|
example = literalExpression ''
|
||||||
[
|
[
|
||||||
"~/.config/nvim-extra" # absolute path, as a string - impure
|
"$HOME/.config/nvim-extra" # absolute path, as a string - impure
|
||||||
./nvim # relative path, as a path - pure
|
./nvim # relative path, as a path - pure
|
||||||
]
|
]
|
||||||
'';
|
'';
|
||||||
|
|
||||||
description = ''
|
description = ''
|
||||||
Additional runtime paths that will be appended to the
|
Additional runtime paths that will be appended to the
|
||||||
active runtimepath of the Neovim. This can be used to
|
active runtimepath of the Neovim. This can be used to
|
||||||
|
|
Loading…
Reference in a new issue