mirror of
https://github.com/nix-community/nixvim.git
synced 2026-08-24 10:14:03 -05:00
modules/editorconfig: remove concatLines usage
Related https://github.com/NixOS/nixpkgs/pull/506077 and https://github.com/NixOS/nixpkgs/pull/514350
This commit is contained in:
committed by
Gaétan Lepage
parent
d4f718bb02
commit
a4ab30928b
@@ -61,13 +61,13 @@
|
||||
mkProperty = name: function: ''
|
||||
__editorconfig.properties.${name} = ${function}
|
||||
'';
|
||||
propertiesString = lib.concatLines (lib.mapAttrsToList mkProperty cfg.properties);
|
||||
propertyAssignments = lib.mapAttrsToList mkProperty cfg.properties;
|
||||
in
|
||||
lib.mkIf (propertiesString != "" && cfg.enable) ''
|
||||
lib.mkIf (propertyAssignments != [ ] && cfg.enable) ''
|
||||
do
|
||||
local __editorconfig = require('editorconfig')
|
||||
|
||||
${propertiesString}
|
||||
${lib.concatStringsSep "\n" propertyAssignments}
|
||||
end
|
||||
'';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user