File tree 3 files changed +10
-5
lines changed
3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -38,11 +38,10 @@ TODO alpha
38
38
[_] demo video
39
39
[X] architecture diagram
40
40
nvim<--msgpack/stdio-->plugin(jar)<--localhost:5555-->socketrepl
41
- [_ ] Error handle repl server not running
41
+ [X ] Error handle repl server not running
42
42
Connection localhost:3333
43
43
Then trying an ,eb doesn't fail gracefully
44
44
->Exception in logs, current-connection still nil?
45
- Add logging
46
45
[_] Script debugging
47
46
open nvim w/ NVIM_LISTEN_ADDRESS
48
47
can we source debug vimscript from CLI?
Original file line number Diff line number Diff line change 89
89
[]
90
90
(swap! current-connection assoc :last (System/currentTimeMillis )))
91
91
92
+ (defn connected-to-socket-repl?
93
+ " Returns true if currently connected to a socket repl server."
94
+ [connection]
95
+ ; ; Choose one of the properties set by establishing the connection.
96
+ (:host connection))
97
+
92
98
(defn warn-if-disconnect*
93
- [connection f]
99
+ [connection-atom f]
94
100
(fn [msg]
95
- (if-not @connection
101
+ (if-not ( connected-to-socket-repl? @connection-atom)
96
102
(nvim/vim-command-async
97
103
" :echo 'Use :Connect host:port to connect to a socket repl'"
98
104
(fn [_]))
122
128
`handler` is a function which accepts one string argument."
123
129
[host port handler]
124
130
(let [conn (connection host port)
125
- chan (async/chan 10 )
131
+ chan (async/chan 1024 )
126
132
file (output-file )]
127
133
(reset! current-connection
128
134
(assoc conn
You can’t perform that action at this time.
0 commit comments