11#acid.connections
22low-level connection handler
33
4- ##` add(this, addr) `
4+ ##` acid.connections. add(this, addr)`
55Stores connection for reuse later
66
77this** (table)** : Connections object.
88
99addr** ({string,string})** : Address tuple with ip and port.
1010
1111
12- ##` select(this, pwd, ix) `
12+ ##` acid.connections. select(this, pwd, ix)`
1313Elects selected connection as primary (thus default) for a certain address
1414
1515this** (table)** : Connections object.
@@ -20,15 +20,15 @@ pwd **(string)**: path (usually project root).
2020ix** (int)** : index of the stored connection
2121
2222
23- ##` unselect(this, pwd) `
23+ ##` acid.connections. unselect(this, pwd)`
2424Dissociates the connection for the given path
2525
2626this** (table)** : Connections object.
2727
2828pwd** (string)** : path (usually project root).
2929
3030
31- ##` get(this, pwd) `
31+ ##` acid.connections. get(this, pwd)`
3232Return active connection for the given path
3333
3434this** (table)** : Connections object.
@@ -44,7 +44,7 @@ pwd **(string)**: path (usually project root).
4444#acid.core
4545low-level connection handler.
4646
47- ##` send([conn], obj, handler) `
47+ ##` acid.core. send([conn], obj, handler)`
4848Forward messages to the nrepl and registers the handler.
4949
5050* conn* ** ({string,string})** : Ip and Port tuple. Will try to get one if nil.
@@ -59,7 +59,7 @@ handler **(function)**: Handler function to deal with the response.
5959#acid.features
6060User-facing features and runnable commands
6161
62- ##` eval_cmdline(code[, ns]) `
62+ ##` acid.features. eval_cmdline(code[, ns])`
6363Evaluate the given code and insert the result at the cursor position
6464
6565code** (string)** : Clojure s-expression to be evaluated on the nrepl
@@ -68,7 +68,7 @@ code **(string)**: Clojure s-expression to be evaluated on the nrepl
6868 Defaults to current file's ns.
6969
7070
71- ##` eval_expr([mode[, ns]]) `
71+ ##` acid.features. eval_expr([mode[, ns]])`
7272Evaluate the current form or the given motion.
7373
7474* mode* ** (string)** : motion mode
@@ -77,7 +77,7 @@ Evaluate the current form or the given motion.
7777 Defaults to current file's ns.
7878
7979
80- ##` do_require([ns[, ...]]) `
80+ ##` acid.features. do_require([ns[, ...]])`
8181Sends a` (require '[...]) ` function to the nrepl.
8282
8383* ns* ** (string)** : Namespace to be used when evaluating the code.
@@ -86,15 +86,15 @@ Sends a `(require '[...])` function to the nrepl.
8686* ...* : extra arguments to the require function
8787
8888
89- ##` do_import(java_ns, symbols) `
89+ ##` acid.features. do_import(java_ns, symbols)`
9090Sends a` (import '[...]) ` function to the nrepl.
9191
9292java_ns** (string)** : Namespace of the java symbols that are being imported.
9393
9494symbols** ({string,...})** : List of java symbols to be imported
9595
9696
97- ##` go_to([symbol[, ns]]) `
97+ ##` acid.features. go_to([symbol[, ns]])`
9898Navigates the the definition of the given symbol.
9999
100100* symbol* ** (string)** : Symbol to navigate to. Defaults to symbol under
@@ -104,7 +104,7 @@ Navigates the the definition of the given symbol.
104104 Defaults to current file's ns.
105105
106106
107- ##` docs([symbol[, ns]]) `
107+ ##` acid.features. docs([symbol[, ns]])`
108108Shows the docstring of the given symbol.
109109
110110* symbol* ** (string)** : Symbol which docs will be shown. Defaults to symbol under cursor.
@@ -113,29 +113,29 @@ Shows the docstring of the given symbol.
113113 Defaults to current file's ns.
114114
115115
116- ##` preload() `
116+ ##` acid.features. preload()`
117117Inject some clojure files into the nrepl sesion.
118118
119119
120- ##` load_all_nss() `
120+ ##` acid.features. load_all_nss()`
121121Load all namespaces in the current session.
122122
123123
124- ##` add_require(req) `
124+ ##` acid.features. add_require(req)`
125125Refactor the current file to include the given argument in the
126126` (:requires ...) ` section.
127127
128128req** (string)** : require vector, such as` [clojure.string :as str] ` .
129129
130130
131- ##` remove_require(req) `
131+ ##` acid.features. remove_require(req)`
132132Refactor the current file to remove the given argument from the
133133` (:requires ...) ` section.
134134
135135req** (string)** : require namespace, such as` clojure.string ` .
136136
137137
138- ##` sort_requires() `
138+ ##` acid.features. sort_requires()`
139139Refactor the current file so the` (:require ...) ` form is sorted.
140140
141141
@@ -144,14 +144,14 @@ Refactor the current file so the `(:require ...)` form is sorted.
144144#acid.forms
145145Forms extraction
146146
147- ##` get_form_boundaries() `
147+ ##` acid.forms. get_form_boundaries()`
148148Returns the coordinates for the boundaries of the current form
149149
150150
151151** (table)** coordinates {from = {row,col}, to = {row,col}}
152152
153153
154- ##` form_under_cursor() `
154+ ##` acid.forms. form_under_cursor()`
155155Extracts the innermost form under the cursor
156156
157157
@@ -160,7 +160,7 @@ Extracts the innermost form under the cursor
160160** (table)** coordinates {from = {row,col}, to = {row,col}}
161161
162162
163- ##` symbol_under_cursor() `
163+ ##` acid.forms. symbol_under_cursor()`
164164Extracts the symbol under the cursor
165165
166166
@@ -174,7 +174,7 @@ Extracts the symbol under the cursor
174174#acid
175175Frontend module with most relevant functions
176176
177- ##` connected([pwd]) `
177+ ##` acid. connected([pwd])`
178178Checks whether a connection exists for supplied path or not.
179179
180180* pwd* ** (string)** : Path bound to connection.
@@ -184,15 +184,15 @@ Checks whether a connection exists for supplied path or not.
184184** (boolean)** Whether a connection exists or not.
185185
186186
187- ##` run(cmd, conn) `
187+ ##` acid. run(cmd, conn)`
188188Façade to core.send
189189
190190cmd: A command (op + payload + handler) to be executed.
191191
192192conn: A connection where this command will be run.
193193
194194
195- ##` callback(session, ret) `
195+ ##` acid. callback(session, ret)`
196196Callback proxy for handling command responses
197197
198198session: Session ID for matching response with request
@@ -221,7 +221,7 @@ Values:
221221* ` cider/cider-nrepl `
222222* ` refactor-nrepl `
223223
224- ##` start(obj) `
224+ ##` acid.nrepl. start(obj)`
225225Starts a tools.deps nrepl server
226226
227227obj** (table)** : Configuration for the nrepl process to be spawn
@@ -237,7 +237,7 @@ Parameters for table `obj` are:
237237** (boolean)** Whether it was possible to spawn a nrepl process
238238
239239
240- ##` stop(obj) `
240+ ##` acid.nrepl. stop(obj)`
241241Stops a nrepl process managed by acid
242242
243243obj** (table)** : Configuration for the nrepl process to be stopped
@@ -246,7 +246,7 @@ Parameters for table `obj` are:
246246
247247* obj.pwd** (string)** : Path where the nrepl process was started
248248
249- ##` show([ch]) `
249+ ##` acid.nrepl. show([ch])`
250250Debugs nrepl connection by returning the captured output
251251
252252* ch* ** (int)** : Neovim's job id of given nrepl process. When not supplied return all.