mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2025-01-07 07:49:49 +01:00
Compare commits
3 commits
08fe742a9d
...
ba422b43bc
Author | SHA1 | Date | |
---|---|---|---|
|
ba422b43bc | ||
|
114b9b4121 | ||
a0a57757a0 |
2 changed files with 33 additions and 17 deletions
|
@ -85,7 +85,7 @@
|
||||||
ls_sources,
|
ls_sources,
|
||||||
null_ls.builtins.formatting.prettier.with({
|
null_ls.builtins.formatting.prettier.with({
|
||||||
command = "${cfg.format.package}/bin/prettier",
|
command = "${cfg.format.package}/bin/prettier",
|
||||||
filetypes = { "typescript" },
|
filetypes = { "typescript" },
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -126,16 +126,14 @@ in {
|
||||||
|
|
||||||
example = {"some_variable" = 42;};
|
example = {"some_variable" = 42;};
|
||||||
description = ''
|
description = ''
|
||||||
An attribute set containing global variable values
|
A freeform attribute set containing global variable values for setting vim
|
||||||
for storing vim variables as early as possible. If
|
variables as early as possible. If populated, this option will set vim variables
|
||||||
populated, this option will set vim variables in the
|
in the built {option}`luaConfigRC` as the first item.
|
||||||
built luaConfigRC as the first item.
|
|
||||||
|
|
||||||
::: {.note}
|
::: {.note}
|
||||||
`{foo = "bar";}` will set `vim.g.foo` to "bar", where
|
`{foo = "bar";}` will set `vim.g.foo` to "bar", where the type of `bar` in the
|
||||||
the type of `bar` in the resulting Lua value will be
|
resulting Lua value will be inferred from the type of the value in the
|
||||||
inferred from the type of the value in the `{name = value;}`
|
`{name = value;}` pair passed to the option.
|
||||||
pair passed to the option.
|
|
||||||
:::
|
:::
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
@ -212,21 +210,39 @@ 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 = ''
|
||||||
An attribute set containing vim options to be set
|
A freeform attribute set containing vim options to be set as early as possible.
|
||||||
as early as possible. If populated, this option will
|
If populated, this option will set vim options in the built {option}`luaConfigRC`
|
||||||
set vim options in the built luaConfigRC after `basic`
|
after `basic` and before `pluginConfigs` DAG entries.
|
||||||
and before `pluginConfigs` DAG entries.
|
|
||||||
|
|
||||||
::: {.note}
|
::: {.note}
|
||||||
`{foo = "bar";}` will set `vim.o.foo` to "bar", where
|
`{foo = "bar";}` will set `vim.o.foo` to "bar", where the type of `bar` in the
|
||||||
the type of `bar` in the resulting Lua value will be
|
resulting Lua value will be inferred from the type of the value in the
|
||||||
inferred from the type of the value in the`{name = value;}`
|
`{name = value;}` pair passed to the option.
|
||||||
pair passed to the option.
|
|
||||||
:::
|
:::
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue