# local kakrc for gcli

set-option global ctagscmd "uctags -R --fields=+S"
set-option global ctagspaths "include src thirdparty"

evaluate-commands %sh{
	if [ $(uname -s) = FreeBSD ];
	then
		N=$(nproc)

		echo "set-option global makecmd \"idprio 0 make -j${N} -C build\""
	else
		echo "set-option global makecmd \"nice make -C build\""
	fi
}

hook global BufSetOption filetype=c %{
	smarttab
}
