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:
parent
5da3805559
commit
4450d34b4d
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue