mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 08:53:28 +02:00
docs: remove whitespaces from filepaths if any
This commit is contained in:
parent
8040f8422a
commit
26b202828f
1 changed files with 9 additions and 2 deletions
|
@ -74,7 +74,7 @@ with lib; let
|
||||||
if isOpt
|
if isOpt
|
||||||
then opts
|
then opts
|
||||||
else filterAttrs (_: component: component.isOption && (isVisible component)) opts;
|
else filterAttrs (_: component: component.isOption && (isVisible component)) opts;
|
||||||
path = concatStringsSep "/" path;
|
path = removeWhitespace (concatStringsSep "/" path);
|
||||||
};
|
};
|
||||||
|
|
||||||
components =
|
components =
|
||||||
|
@ -147,7 +147,14 @@ with lib; let
|
||||||
|
|
||||||
components = optionalAttrs (!isOpt) {
|
components = optionalAttrs (!isOpt) {
|
||||||
${name} = recursiveUpdate opts {
|
${name} = recursiveUpdate opts {
|
||||||
index.path = removeWhitespace (concatStringsSep "/" ((optional (group != "none") group) ++ [opts.index.path]));
|
index.path =
|
||||||
|
removeWhitespace
|
||||||
|
(
|
||||||
|
concatStringsSep "/"
|
||||||
|
(
|
||||||
|
(optional (group != "none") group) ++ [opts.index.path]
|
||||||
|
)
|
||||||
|
);
|
||||||
hasComponents = true;
|
hasComponents = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue