mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-22 21:30:51 +00:00
wrapper/rc: document vim.globals
better
This commit is contained in:
parent
72a5e6c684
commit
50609c731e
2 changed files with 14 additions and 2 deletions
|
@ -81,6 +81,8 @@ inputs: {
|
||||||
optional = false;
|
optional = false;
|
||||||
}) (buildConfigPlugins vimOptions.optPlugins);
|
}) (buildConfigPlugins vimOptions.optPlugins);
|
||||||
|
|
||||||
|
# combine built start and optional plugins
|
||||||
|
# into a single list
|
||||||
plugins = builtStartPlugins ++ builtOptPlugins;
|
plugins = builtStartPlugins ++ builtOptPlugins;
|
||||||
|
|
||||||
# additional Lua and Python3 packages, mapped to their respective functions
|
# additional Lua and Python3 packages, mapped to their respective functions
|
||||||
|
|
|
@ -70,9 +70,19 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
globals = mkOption {
|
globals = mkOption {
|
||||||
default = {};
|
|
||||||
type = attrs;
|
type = attrs;
|
||||||
description = "Set containing global variable values";
|
default = {};
|
||||||
|
description = ''
|
||||||
|
An attribute set containing global variable values
|
||||||
|
for storing vim variables as early as possible. If
|
||||||
|
populated, this soption will set vim variables in the
|
||||||
|
built configRC as the first item.
|
||||||
|
|
||||||
|
E.g. {foo = "bar"} will set `g:foo` to "bar" where
|
||||||
|
the type of `bar` in the resulting vimscript will be
|
||||||
|
infered from the type of the value in the `{name = value}`
|
||||||
|
pair.
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
configRC = mkOption {
|
configRC = mkOption {
|
||||||
|
|
Loading…
Reference in a new issue