mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 09:18:38 +02:00
plugins/ltex-extra: minor options cleanup
- Remove stringified default values - Use an enum for log levels - Remove adding package (done by mkNeovimPlugin)
This commit is contained in:
parent
36b4a39b2b
commit
130a66bce7
1 changed files with 10 additions and 13 deletions
|
@ -28,21 +28,20 @@ helpers.neovim-plugin.mkNeovimPlugin config {
|
||||||
Whether to load dictionaries on startup.
|
Whether to load dictionaries on startup.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
load_langs = helpers.defaultNullOpts.mkNullable (types.listOf types.str) ''["en-US"]'' ''
|
load_langs = helpers.defaultNullOpts.mkListOf types.str [ "en-US" ] ''
|
||||||
Languages for witch dicionnaries will be loaded.
|
Languages for witch dicionnaries will be loaded.
|
||||||
See `plugins.lsp.servers.ltex.languages` for possible values.
|
See `plugins.lsp.servers.ltex.languages` for possible values.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
log_level = helpers.defaultNullOpts.mkStr "none" ''
|
log_level = helpers.defaultNullOpts.mkEnumFirstDefault [
|
||||||
Log level. Possible values:
|
"none"
|
||||||
- "none"
|
"trace"
|
||||||
- "trace"
|
"debug"
|
||||||
- "debug"
|
"info"
|
||||||
- "info"
|
"warn"
|
||||||
- "warn"
|
"error"
|
||||||
- "error"
|
"fatal"
|
||||||
- "fatal"
|
] "Log level.";
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
extraConfig = cfg: {
|
extraConfig = cfg: {
|
||||||
|
@ -51,8 +50,6 @@ helpers.neovim-plugin.mkNeovimPlugin config {
|
||||||
You should set `plugins.lsp.enable = true` to make use of the LTeX_extra plugin's features.
|
You should set `plugins.lsp.enable = true` to make use of the LTeX_extra plugin's features.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
extraPlugins = [ cfg.package ];
|
|
||||||
|
|
||||||
plugins.lsp = {
|
plugins.lsp = {
|
||||||
servers.ltex = {
|
servers.ltex = {
|
||||||
# Enable the ltex language server
|
# Enable the ltex language server
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue