mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-29 06:18:45 +02:00
treewide: format with new nixfmt
This commit is contained in:
parent
d63fd77511
commit
dd73afe9c6
34 changed files with 665 additions and 679 deletions
|
@ -14,38 +14,37 @@ let
|
|||
cfg' = config.plugins.none-ls.sources.${sourceType}.${sourceName};
|
||||
in
|
||||
{
|
||||
options.plugins.none-ls.sources.${sourceType}.${sourceName} =
|
||||
{
|
||||
enable = lib.mkEnableOption "the ${sourceName} ${sourceType} source for none-ls";
|
||||
# Support strLua for compatibility with the old withArgs option
|
||||
settings = lib.nixvim.defaultNullOpts.mkStrLuaOr' {
|
||||
type = with lib.types; attrsOf anything;
|
||||
description = ''
|
||||
Options provided to the `require('null-ls').builtins.${sourceType}.${sourceName}.with` function.
|
||||
options.plugins.none-ls.sources.${sourceType}.${sourceName} = {
|
||||
enable = lib.mkEnableOption "the ${sourceName} ${sourceType} source for none-ls";
|
||||
# Support strLua for compatibility with the old withArgs option
|
||||
settings = lib.nixvim.defaultNullOpts.mkStrLuaOr' {
|
||||
type = with lib.types; attrsOf anything;
|
||||
description = ''
|
||||
Options provided to the `require('null-ls').builtins.${sourceType}.${sourceName}.with` function.
|
||||
|
||||
See upstream's [`BUILTIN_CONFIG`] documentation.
|
||||
See upstream's [`BUILTIN_CONFIG`] documentation.
|
||||
|
||||
[`BUILTIN_CONFIG`]: https://github.com/nvimtools/none-ls.nvim/blob/main/doc/BUILTIN_CONFIG.md
|
||||
'';
|
||||
example = {
|
||||
extra_filetypes = [ "toml" ];
|
||||
disabled_filetypes = [ "lua" ];
|
||||
extra_args = [
|
||||
"-i"
|
||||
"2"
|
||||
"-ci"
|
||||
];
|
||||
};
|
||||
[`BUILTIN_CONFIG`]: https://github.com/nvimtools/none-ls.nvim/blob/main/doc/BUILTIN_CONFIG.md
|
||||
'';
|
||||
example = {
|
||||
extra_filetypes = [ "toml" ];
|
||||
disabled_filetypes = [ "lua" ];
|
||||
extra_args = [
|
||||
"-i"
|
||||
"2"
|
||||
"-ci"
|
||||
];
|
||||
};
|
||||
}
|
||||
# Only declare a package option if a package is required
|
||||
// lib.optionalAttrs (packaged ? ${sourceName}) {
|
||||
package =
|
||||
lib.nixvim.mkMaybeUnpackagedOption "plugins.none-ls.sources.${sourceType}.${sourceName}.package"
|
||||
pkgs
|
||||
sourceName
|
||||
pkg;
|
||||
};
|
||||
}
|
||||
# Only declare a package option if a package is required
|
||||
// lib.optionalAttrs (packaged ? ${sourceName}) {
|
||||
package =
|
||||
lib.nixvim.mkMaybeUnpackagedOption "plugins.none-ls.sources.${sourceType}.${sourceName}.package"
|
||||
pkgs
|
||||
sourceName
|
||||
pkg;
|
||||
};
|
||||
|
||||
# TODO: Added 2024-07-16; remove after 24.11
|
||||
imports =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue