Skip to content

Commit 0227b5c

Browse files
committed
WIP - move socket repl plugin to separate project
1 parent 2d3b78b commit 0227b5c

File tree

5 files changed

+21
-2
lines changed

5 files changed

+21
-2
lines changed

TODO.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

TODO renamed to socket-repl-plugin/TODO

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
11
TODO
2+
[_] Move this TODO to socket-repl-plugin
3+
[_] Move all of the socket repl stuff to a plugin project
24
[X] Make buffer-get-text-async work, just test it at the repl
35
[X] Get "eval-code" working
46
[_] Figure out how to accumulate / display results in vim
7+
append it all to a file
8+
preferably a temp file (could be a lot of data)
9+
don't keep it in memory
10+
`:ShowRepl`
11+
no vimscript, invoke a plugin function
12+
show the contents of the temp file in the current buffer
13+
make it autoread
514
[_] Name vim functions correctly
615
[_] Pass host, port in connect
716

817
Goals
18+
-Not a proper nRepl plugin, primary use is as an thought exercise
919
-Zero vimscript (plugin written in clojure)
1020
-Simplicity
1121
Ex:
File renamed without changes.

socket-repl-plugin/project.clj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
(defproject socket-repl-plugin "0.1.0-SNAPSHOT"
2+
:description "FIXME: write description"
3+
:url "http://example.com/FIXME"
4+
:license {:name "Eclipse Public License"
5+
:url "http://www.eclipse.org/legal/epl-v10.html"}
6+
:dependencies [[org.clojure/clojure "1.9.0-alpha12"]
7+
[neovim-client "0.1.0-SNAPSHOT"]]
8+
:main ^:skip-aot socket-repl.socket-repl-plugin
9+
:target-path "target/%s"
10+
:profiles {:uberjar {:aot :all}})

src/neovim_client/socket_repl_plugin.clj renamed to socket-repl-plugin/src/socket_repl/socket_repl_plugin.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(ns neovim-client.socket-repl-plugin
1+
(ns socket-repl.socket-repl-plugin
22
"A plugin which connects to a running socket repl and sends output back to
33
Neovim."
44
(:require

0 commit comments

Comments
 (0)