1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-15 23:12:48 +01:00

plugins/conform-nvim: fix auto-install when settings.formatters is null

This commit is contained in:
Gaetan Lepage 2025-11-12 11:29:48 +01:00 committed by Gaétan Lepage
parent 9e58db38c0
commit 85889f5676

View file

@ -26,7 +26,7 @@ rec {
{ configuredFormatters, overrides }:
name:
let
permittedNames = attrNames configuredFormatters;
permittedNames = lib.optionals (lib.isAttrs configuredFormatters) (attrNames configuredFormatters);
isSType = x: elem x sTypeList;
notFoundMsg = ''
A package for the conform-nvim formatter '${name}' could not be found.