Skip to content

Commit 1271354

Browse files
committed
rename option to autoInstall
Signed-off-by: saygo-png <[email protected]>
1 parent 3f94231 commit 1271354

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

plugins/by-name/conform-nvim/default.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
4949
];
5050

5151
extraOptions = {
52-
autoInstallFormatters = {
52+
autoInstall = {
5353
enable = lib.mkEnableOption ''
5454
Whether to automatically install formatters listed in `formatters_by_ft`.
5555
'';
@@ -266,11 +266,11 @@ lib.nixvim.plugins.mkNeovimPlugin {
266266
inherit (import ./auto-install.nix { inherit pkgs lib; }) getPkgFromConformName collectFormatters;
267267
getPkgFromConformName' = getPkgFromConformName {
268268
customFormatters = mapAttrs (_: _: null) cfg.settings.formatters;
269-
inherit (cfg.autoInstallFormatters) overrides;
269+
inherit (cfg.autoInstall) overrides;
270270
};
271271
names = collectFormatters (attrValues cfg.settings.formatters_by_ft);
272272
in
273273
{
274-
extraPackages = lib.optionals cfg.autoInstallFormatters.enable (map getPkgFromConformName' names);
274+
extraPackages = lib.optionals cfg.autoInstall.enable (map getPkgFromConformName' names);
275275
};
276276
}

tests/test-sources/plugins/by-name/conform-nvim/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
{
1212
plugins.conform-nvim = {
1313
enable = true;
14-
autoInstallFormatters.enable = true;
14+
autoInstall.enable = true;
1515
settings.formatters_by_ft."*" = allFormatters;
1616
};
1717
};

0 commit comments

Comments
 (0)