1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-09 03:56:05 +01:00

plugins/conform: fix eval when formatters are not defined

This commit is contained in:
Heitor Augusto 2025-10-27 13:06:53 -03:00 committed by Austin Horstman
parent 5da3805559
commit 4450d34b4d

View file

@ -254,7 +254,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
configuredFormatters = cfg.settings.formatters;
inherit (cfg.autoInstall) overrides;
};
names = collectFormatters (attrValues cfg.settings.formatters_by_ft);
names = collectFormatters (attrValues cfg.settings.formatters_by_ft or { });
packageList = map getPackageByNameWith names;
warns = (mkWarnsFromMaybePackageList opts) packageList;
in