Skip to content

Commit 2ebbe86

Browse files
snippets: add wrap-rich-comment
Wrap current form with a rich comment form
1 parent 82215c8 commit 2ebbe86

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Clone the repository to the user level configuration location for Clojure LSP, e
2121
* `rich-comment` - comment block
2222
* `rich-comment-rdd` - comment block with ignore :redefined-var for repl experiments
2323
* `rich-comment-hotload` - comment block with add-libs code for hotloading libraries in Clojure CLI repl
24+
* `wrap-rich-comment` - wrap current form with comment reader macro
2425

2526
### Standard library functions
2627
* `def` - def with docstring

config.edn

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,14 @@
164164
$0
165165
#_()) ; End of rich comment block"}
166166

167+
{:name "wrap-rich-comment"
168+
:detail "Wrap current expression with rich comment form"
169+
:snippet
170+
"(comment
171+
$current-form
172+
$0
173+
#_()) ;; End of rich comment"}
174+
167175
;; Core functions
168176
{:name "def"
169177
:detail "def with docstring"

0 commit comments

Comments
 (0)