mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-06-10 15:10:04 +00:00
rc/options: use vim.opt for structured options
This commit is contained in:
parent
af84cb2cce
commit
d12ba436b1
2 changed files with 4 additions and 4 deletions
|
|
@ -18,7 +18,7 @@ in {
|
|||
mapAttrsToList (name: value: "vim.g.${name} = ${toLuaObject value}") cfg.globals;
|
||||
|
||||
optionsScript =
|
||||
mapAttrsToList (name: value: "vim.o.${name} = ${toLuaObject value}") cfg.options;
|
||||
mapAttrsToList (name: value: "vim.opt.${name} = ${toLuaObject value}") cfg.options;
|
||||
|
||||
extraPluginConfigs = resolveDag {
|
||||
name = "extra plugin configs";
|
||||
|
|
|
|||
|
|
@ -266,9 +266,9 @@ in {
|
|||
after `basic` and before `pluginConfigs` DAG entries.
|
||||
|
||||
::: {.note}
|
||||
`{foo = "bar";}` will set `vim.o.foo` to "bar", where the type of `bar` in the
|
||||
resulting Lua value will be inferred from the type of the value in the
|
||||
`{name = value;}` pair passed to the option.
|
||||
`{foo = "bar";}` will set `vim.opt.foo` to "bar", where the type of
|
||||
`bar` in the resulting Lua value will be inferred from the type of the
|
||||
value in the `{name = value;}` pair passed to the option.
|
||||
:::
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue