#!/usr/bin/env -S sh -eu

# A Kakoune wrapper which prioritizes the build-artifact `kakeidoscope`, run
# without configuration, to test the KakouneScript integration in '/rc/'.

PATH="${0%/*}/../target/debug:$PATH" kak -n -s 'kakeidoscope-tests' -E '
	evaluate-commands %sh{ kakeidoscope init }
	set-option global kakeidoscope_faces green cyan blue magenta
	hook global WinCreate ".*" kakeidoscope-enable-window
'
