1
0
Fork 0
mirror of https://github.com/NotAShelf/neovim-flake.git synced 2024-12-27 05:59:48 +01:00
neovim-flake/lib/lua.nix

13 lines
192 B
Nix
Raw Normal View History

# Helpers for converting values to lua
{lib}: {
yesNo = value:
if value
then "yes"
else "no";
nullString = value:
if value == null
then "nil"
else "'${value}'";
}