#!/usr/bin/env sh

TMPPATH=$(mktemp -d "/tmp/lua-language-server.XXXX")
DEFAULT_LOGPATH="$TMPPATH/log"
DEFAULT_METAPATH="$TMPPATH/meta"

exec /opt/local/lib/lua-language-server/bin/lua-language-server \
    -E /opt/local/lib/lua-language-server/main.lua \
    --logpath="$DEFAULT_LOGPATH" \
    --metapath="$DEFAULT_METAPATH" \
    "$@"
