1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-16 07:22:49 +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 }: { configuredFormatters, overrides }:
name: name:
let let
permittedNames = attrNames configuredFormatters; permittedNames = lib.optionals (lib.isAttrs configuredFormatters) (attrNames configuredFormatters);
isSType = x: elem x sTypeList; isSType = x: elem x sTypeList;
notFoundMsg = '' notFoundMsg = ''
A package for the conform-nvim formatter '${name}' could not be found. A package for the conform-nvim formatter '${name}' could not be found.