diff --git a/modules/lib/default.nix b/modules/lib/default.nix index 2d69174..67a80c9 100644 --- a/modules/lib/default.nix +++ b/modules/lib/default.nix @@ -55,6 +55,11 @@ in # a convenience to deal with the main flavor naming getKebabTheme = flavor: if (flavor == "main") then "rose-pine" else "rose-pine-${flavor}"; + # string -> string + # convert flavor to full theme name in snake case + # a convenience to deal with the main flavor naming + getSnakeTheme = flavor: if (flavor == "main") then "rose_pine" else "rose_pine_${flavor}"; + # string -> string # this capitalizes the first letter in a string, # which is sometimes needed in order to format