Skip to content

Commit 9d1b753

Browse files
format: add sub-section comments in snippets configuration
1 parent 1d57e10 commit 9d1b753

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

config.edn

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@
119119

120120
;; Locally defined snippets
121121
:additional-snippets
122-
[{:name "comment-heading"
122+
[;; Documentation / comments
123+
124+
{:name "comment-heading"
123125
:detail "Comment Header"
124126
:snippet
125127
";; --------------------------------------------------
@@ -177,6 +179,7 @@
177179
#_()) ;; End of rich comment"}
178180

179181
;; Core functions
182+
180183
{:name "def"
181184
:detail "def with docstring"
182185
:snippet "(def ${1:name}\n \"${2:doc-string}\"\n $0)"}
@@ -197,6 +200,8 @@
197200
:detail "Create ns"
198201
:snippet "(ns ${1:name}\n \"${2:doc-string}\"\n ${3:require})"}
199202

203+
;; Clojure CLI alias snippets
204+
200205
{:name "deps-alias"
201206
:detail "deps.edn alias with extra path & deps"
202207
:snippet
@@ -261,6 +266,8 @@
261266
:snippet
262267
"${1:domain/library-name} {:local/root \"${2:/path/to/project/root}\"}$0"}
263268

269+
;; Requiring dependency snippets
270+
264271
{:name "require-rdd"
265272
:detail "require for rich comment experiments"
266273
:snippet "(require '[${1:namespace} :as ${2:alias}]$3)$0"}

0 commit comments

Comments
 (0)