mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2025-01-09 16:39:51 +01:00
Compare commits
No commits in common. "8c7419d380abc66f320501aebdee4a61f87633cb" and "fbee50f036f80e537bf3f5e6a180c451555e0d6d" have entirely different histories.
8c7419d380
...
fbee50f036
1 changed files with 16 additions and 32 deletions
|
@ -126,14 +126,16 @@ in {
|
||||||
|
|
||||||
example = {"some_variable" = 42;};
|
example = {"some_variable" = 42;};
|
||||||
description = ''
|
description = ''
|
||||||
A freeform attribute set containing global variable values for setting vim
|
An attribute set containing global variable values
|
||||||
variables as early as possible. If populated, this option will set vim variables
|
for storing vim variables as early as possible. If
|
||||||
in the built {option}`luaConfigRC` as the first item.
|
populated, this option will set vim variables in the
|
||||||
|
built luaConfigRC as the first item.
|
||||||
|
|
||||||
::: {.note}
|
::: {.note}
|
||||||
`{foo = "bar";}` will set `vim.g.foo` to "bar", where the type of `bar` in the
|
`{foo = "bar";}` will set `vim.g.foo` to "bar", where
|
||||||
resulting Lua value will be inferred from the type of the value in the
|
the type of `bar` in the resulting Lua value will be
|
||||||
`{name = value;}` pair passed to the option.
|
inferred from the type of the value in the `{name = value;}`
|
||||||
|
pair passed to the option.
|
||||||
:::
|
:::
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
@ -210,39 +212,21 @@ in {
|
||||||
default = true;
|
default = true;
|
||||||
description = "Enable word wrapping.";
|
description = "Enable word wrapping.";
|
||||||
};
|
};
|
||||||
|
|
||||||
tabstop = mkOption {
|
|
||||||
type = int;
|
|
||||||
default = 8; # Neovim default
|
|
||||||
description = ''
|
|
||||||
Number of spaces that a `<Tab>` in the file counts for. Also see
|
|
||||||
the {command}`:retab` command, and the {option}`softtabstop` option.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
shiftwidth = mkOption {
|
|
||||||
type = int;
|
|
||||||
default = 8; # Neovim default
|
|
||||||
description = ''
|
|
||||||
Number of spaces to use for each step of (auto)indent. Used for
|
|
||||||
{option}`cindent`, `>>`, `<<`, etc.
|
|
||||||
|
|
||||||
When zero the {option}`tabstop` value will be used.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
example = {visualbell = true;};
|
example = {visualbell = true;};
|
||||||
description = ''
|
description = ''
|
||||||
A freeform attribute set containing vim options to be set as early as possible.
|
An attribute set containing vim options to be set
|
||||||
If populated, this option will set vim options in the built {option}`luaConfigRC`
|
as early as possible. If populated, this option will
|
||||||
after `basic` and before `pluginConfigs` DAG entries.
|
set vim options in the built luaConfigRC after `basic`
|
||||||
|
and before `pluginConfigs` DAG entries.
|
||||||
|
|
||||||
::: {.note}
|
::: {.note}
|
||||||
`{foo = "bar";}` will set `vim.o.foo` to "bar", where the type of `bar` in the
|
`{foo = "bar";}` will set `vim.o.foo` to "bar", where
|
||||||
resulting Lua value will be inferred from the type of the value in the
|
the type of `bar` in the resulting Lua value will be
|
||||||
`{name = value;}` pair passed to the option.
|
inferred from the type of the value in the`{name = value;}`
|
||||||
|
pair passed to the option.
|
||||||
:::
|
:::
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue