acme setup

acme startup script

#!/usr/bin/env bash

export SHELL="/usr/lib/plan9/bin/rc"
export acmeshell="/usr/lib/plan9/bin/rc"

export TERM=dumb
export PAGER=nobs

# Path to 'a' script itself
acme_bin_dir=$( cd $(dirname $0) && pwd )

# Where are the plumber rules?
acme_plumber_rules="$acme_bin_dir/../plumbing"

if [ "$(pgrep plumber)" ]; then
    echo plumber is running
else
    echo starting plumber
    plumber
    cat "$acme_plumber_rules" "$PLAN9/plumb/basic" | 9p write plumb/rules
    9 mount `namespace`/plumb /mnt/plumb
fi

nohup acme -a -l /home/sevki/acme.dump &
9 mount `namespace`/acme /mnt/acme

run go lsp like so

acme-lsp -server '\.go$:gopls'