This tool tries to convert yaml files to lua, aimed at easing the xplr YAML -> Lua migration.
Important: This tool will not generate 100% correct lua code. You will need to mix and match the flat and nested outputs and fix syntax issues manually.
You will need Python ~ 3.8 and poetry
git clone https://github.com/sayanarijit/xplr-yml2lua
cd xplr-yml2lua
poetry install --no-dev
poetry run xplr-yml2lua --help
Note: It may run on other versions of Python, but I haven't tested it.
cat ~/.config/xplr/config.yml | poetry run xplr-yml2lua
cat ~/.config/xplr/config.yml | poetry run xplr-yml2lua --flat