-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
acid.txt
120 lines (90 loc) · 4.26 KB
/
acid.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
*acid.txt* Asynchronous Clojure Interactive Development
Author: hkupty <hkupty@gmail.com>
Version: 1.1
License:
==============================================================================
CONTENTS *acid-contents*
INTRODUCTION |acid-introduction|
FUNCTIONS |acid-functions|
REMOTE-FUNCTIONS |acid-remote-functions|
COMMANDS |acid-command|
DEFAULT MAPPINGS |acid-mapping|
CONFIGURATIONS |acid-configuration|
==============================================================================
INTRODUCTION *acid-introduction*
*Acid.nvim* is a plugin for clojure development on neovim. It was initially
designed within iron.nvim (http://github.com/clojure-vim/iron.nvim),
but evolved to be a proper clojure plugin for neovim.
==============================================================================
FUNCTIONS *acid-functions*
Here are documented the functions that are defined in viml. Please refer to
*acid-remote-functions* for functions defined in python.
:AcidFnAddRequire(require) *AcidFnAddRequire()*
Refactors the current file to include the given require statement.
:AcidMotion(mode) *AcidMotion()*
Wrapper for evaluating the given motion on the nrepl.
:AcidInsertEval(namespace) *AcidInsertEval()*
Creates a clojure prompt and inserts the result of the evaluation at
the current cursor position.
==============================================================================
REMOTE-FUNCTIONS *acid-remote-functions*
:AcidGetNs() *AcidGetNs()*
Return the namespace of the current file.
:AcidNewUUID() *AcidNewUUID()*
Return a new universaly unique identifier.
:AcidLog(ns, level, message) *AcidLog()*
Write a log message into acid's log file.
<ns> is the namespace to be logged,
<level> is the log level (as described on
https://docs.python.org/3/howto/logging.html#when-to-use-logging)
<message> is the string message to be logged.
:AcidAlternateFiles([<path>]) *AcidAlternateFiles()*
Return a list of the possible alternate files for the supplied <path>
or the current file if none given.
:AcidNewFile(<ns>, [<path>]) *AcidNewFile()*
Create a new file (if it doesn't exist) and return the path to it.
If the path is supplied, it will return the same value.
If no path is supplied, it will be inferred from the namespace.
==============================================================================
COMMANDS *acid-command*
AcidClearVtext [<linenumber>] *AcidClearVtext*
Clears virtualtext on given line number or the entire buffer of no
line is suppled.
AcidRequire [<require> [<options>]] *AcidRequire*
Requires a namespace.
If no parameters supplied, loads current ns.
Arguments supplied can be the same as a require vector, taking options:
>
AcidRequire clojure.string :as str
AcidRequire clojure.string :refer [join]
AcidAddRequire <require> *AcidAddRequire*
Refactors the current file to add a namespace to current requires.
Arguments supplied can be the same as a require vector, taking options:
>
AcidAddRequire clojure.string :as str
AcidAddRequire clojure.string :refer [join]
<
==============================================================================
DEFAULT MAPPINGS *acid-mapping*
{key} {function}
-------- ------------------------
K Shows documentation for the symbol below cursor
<C-]> Goes to definition of symbol below cursor (`AcidGoto`)
cp<motion> Sends the block to nrepl for evaluation (`AcidEval`)
cpp Evaluating the whole block below cursor (`AcidEval`)
==============================================================================
CONFIGURATIONS *acid-configuration*
g:acid_no_default_keymappings *acid_no_default_keymappings*
If it is 1, Acid doesn't set default keymappings.
You can specify your own keymappings like followings:
>
let g:acid_no_default_keymappings = 1
nmap <buffer> <silent> <Leader>K <Plug>(acid-docs)
nmap <buffer> <silent> <Leader><C-c>x <Plug>(acid-eval-cmdline)
imap <buffer> <silent> <Leader><C-c>x <Plug>(acid-eval-cmdline)
nmap <buffer> <silent> <Leader>cp <Plug>(acid-motion-op)
nmap <buffer> <silent> <Leader>cpp <Plug>(acid-eval-expr)
nmap <buffer> <silent> <Leader>cqp <Plug>(acid-eval-print)
<
==============================================================================
vim:tw=78:ts=8:ft=help:norl:noet:fen: