Skip to content

Commit 06b5120

Browse files
committed
Remove unnecessary nvim callback
1 parent 0a9df41 commit 06b5120

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed
Binary file not shown.

socket-repl-plugin/src/socket_repl/socket_repl_plugin.clj

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,7 @@
120120
;; TODO: Get host/port from message
121121
(connect! "localhost" "5555"
122122
(fn [x]
123-
(nvim/run-command-async!
124-
(write-output! x)
125-
(fn [_] nil))))))
123+
(write-output! x)))))
126124

127125
(nvim/register-method!
128126
"eval-code"
@@ -153,6 +151,11 @@
153151
(write-output! (str x "\n"))
154152
(write-code! x)))))
155153

154+
(nvim/register-method!
155+
"doc"
156+
(fn [msg]
157+
))
158+
156159
(nvim/register-method!
157160
"show-log"
158161
(fn [msg]
@@ -162,17 +165,7 @@
162165
(-> @current-connection
163166
:file
164167
.getAbsolutePath))
165-
(fn [_]))
166-
167-
;; Native solution, but only seems to work when the buffer has focus.
168-
#_(nvim/run-command-async!
169-
(format ":e %s" (-> @current-connection
170-
:file
171-
.getAbsolutePath))
172-
(fn [_]
173-
(nvim/run-command-async!
174-
":set updatetime=500 | au CursorHold <buffer> :e!"
175-
(fn [_] nil))))))
168+
(fn [_]))))
176169

177170
;; Don't need to do this in debug, socket repl will keep this alive.
178171
(when-not debug

0 commit comments

Comments
 (0)