statusline/lualine: Move helper to lib

This commit is contained in:
Kalle Jepsen 2023-10-24 09:18:44 +02:00
commit 2a809a64ff
3 changed files with 27 additions and 25 deletions

View file

@ -44,4 +44,6 @@
)
)
+ " }";
# Convert a list of lua expressions to a lua table. The difference to listToLuaTable is that the elements here are expected to be lua expressions already, whereas listToLuaTable converts from nix types to lua first
luaTable = items: ''{${builtins.concatStringsSep "," items}}'';
}