mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-07 15:54:31 +02:00
treewide: Reformat with nixfmt
This commit is contained in:
parent
c6281260dc
commit
62f32bfc71
459 changed files with 28139 additions and 26377 deletions
|
@ -6,69 +6,72 @@
|
|||
...
|
||||
}:
|
||||
with lib;
|
||||
helpers.neovim-plugin.mkNeovimPlugin config {
|
||||
name = "ltex-extra";
|
||||
originalName = "ltex_extra.nvim";
|
||||
defaultPackage = pkgs.vimPlugins.ltex_extra-nvim;
|
||||
helpers.neovim-plugin.mkNeovimPlugin config {
|
||||
name = "ltex-extra";
|
||||
originalName = "ltex_extra.nvim";
|
||||
defaultPackage = pkgs.vimPlugins.ltex_extra-nvim;
|
||||
|
||||
maintainers = [maintainers.loicreynier];
|
||||
maintainers = [ maintainers.loicreynier ];
|
||||
|
||||
callSetup = false;
|
||||
callSetup = false;
|
||||
|
||||
settingsOptions = {
|
||||
path = helpers.defaultNullOpts.mkStr "" ''
|
||||
Path (relative to project root) to load external files from.
|
||||
settingsOptions = {
|
||||
path = helpers.defaultNullOpts.mkStr "" ''
|
||||
Path (relative to project root) to load external files from.
|
||||
|
||||
Commonly used values are:
|
||||
- `.ltex`
|
||||
- `.vscode` for compatibility with projects using the associated VS Code extension.
|
||||
'';
|
||||
Commonly used values are:
|
||||
- `.ltex`
|
||||
- `.vscode` for compatibility with projects using the associated VS Code extension.
|
||||
'';
|
||||
|
||||
init_check = helpers.defaultNullOpts.mkBool true ''
|
||||
Whether to load dictionaries on startup.
|
||||
'';
|
||||
init_check = helpers.defaultNullOpts.mkBool true ''
|
||||
Whether to load dictionaries on startup.
|
||||
'';
|
||||
|
||||
load_langs = helpers.defaultNullOpts.mkNullable (types.listOf types.str) ''["en-US"]'' ''
|
||||
Languages for witch dicionnaries will be loaded.
|
||||
See `plugins.lsp.servers.ltex.languages` for possible values.
|
||||
'';
|
||||
load_langs = helpers.defaultNullOpts.mkNullable (types.listOf types.str) ''["en-US"]'' ''
|
||||
Languages for witch dicionnaries will be loaded.
|
||||
See `plugins.lsp.servers.ltex.languages` for possible values.
|
||||
'';
|
||||
|
||||
log_level = helpers.defaultNullOpts.mkStr "none" ''
|
||||
Log level. Possible values:
|
||||
- "none"
|
||||
- "trace"
|
||||
- "debug"
|
||||
- "info"
|
||||
- "warn"
|
||||
- "error"
|
||||
- "fatal"
|
||||
'';
|
||||
};
|
||||
log_level = helpers.defaultNullOpts.mkStr "none" ''
|
||||
Log level. Possible values:
|
||||
- "none"
|
||||
- "trace"
|
||||
- "debug"
|
||||
- "info"
|
||||
- "warn"
|
||||
- "error"
|
||||
- "fatal"
|
||||
'';
|
||||
};
|
||||
|
||||
extraConfig = cfg: {
|
||||
warnings = optional (!config.plugins.lsp.enable) ''
|
||||
You have enabled `ltex-extra` but not the lsp (`plugins.lsp`).
|
||||
You should set `plugins.lsp.enable = true` to make use of the LTeX_extra plugin's features.
|
||||
'';
|
||||
extraConfig = cfg: {
|
||||
warnings = optional (!config.plugins.lsp.enable) ''
|
||||
You have enabled `ltex-extra` but not the lsp (`plugins.lsp`).
|
||||
You should set `plugins.lsp.enable = true` to make use of the LTeX_extra plugin's features.
|
||||
'';
|
||||
|
||||
extraPlugins = [cfg.package];
|
||||
extraPlugins = [ cfg.package ];
|
||||
|
||||
plugins.lsp = {
|
||||
servers.ltex = {
|
||||
# Enable the ltex language server
|
||||
enable = true;
|
||||
plugins.lsp = {
|
||||
servers.ltex = {
|
||||
# Enable the ltex language server
|
||||
enable = true;
|
||||
|
||||
onAttach.function = ''
|
||||
require("ltex_extra").setup(${helpers.toLuaObject cfg.settings})
|
||||
'';
|
||||
};
|
||||
onAttach.function = ''
|
||||
require("ltex_extra").setup(${helpers.toLuaObject cfg.settings})
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
settingsExample = {
|
||||
path = ".ltex";
|
||||
initCheck = true;
|
||||
loadLangs = ["en-US" "fr-FR"];
|
||||
logLevel = "non";
|
||||
};
|
||||
}
|
||||
settingsExample = {
|
||||
path = ".ltex";
|
||||
initCheck = true;
|
||||
loadLangs = [
|
||||
"en-US"
|
||||
"fr-FR"
|
||||
];
|
||||
logLevel = "non";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue