Skip to content

Commit 164d83b

Browse files
committed
Debug script for live dev on plugin process
1 parent 161f0f0 commit 164d83b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tmux-run-dev-self.sh

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Development run script #
2+
3+
# Generate .classpath from Leiningen if project.clj has changed.
4+
if [[ project.clj -nt .classpath ]]; then
5+
lein classpath > .classpath
6+
fi
7+
8+
tmux new-window -n 'nvim-debug'
9+
tmux send-keys "NVIM_LISTEN_ADDRESS=127.0.0.1:7777 nvim -S plugin/socketrepl.vim.debug" C-m
10+
tmux split
11+
tmux send-keys 'rlwrap java -cp "$(cat .classpath)" -Dclojure.server.repl="{:port 5555 :accept clojure.core.server/repl :server-daemon false}" clojure.main' C-m
12+
tmux send-keys '(println "Socket repl server on 5555")' C-m
13+
tmux send-keys '(println "Plugin repl connecting to nvim")' C-m
14+
tmux send-keys '(go)' C-m

0 commit comments

Comments
 (0)