You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed here we could add a new feature on clojure-lsp:
Support for snippets and custom user snippets used during completion.
User could register via initializationOptionsOR.lsp/config.edn a additional-snippets key/value:
{:additional-snippets [{:name"Wrap in let sexpr":snippet"(let [$1] $0$current-form)"}
{:name"Create private function":snippet"(defn ${1|^:private,-|} ${2:foo} [$3]\n $0)"}]}
clojure-lsp should parse the know variables like $current-form and replace by the current selected form finding it via row and column provided on completionContext when completing.
The text was updated successfully, but these errors were encountered:
As discussed here we could add a new feature on clojure-lsp:
Support for snippets and custom user snippets used during completion.
initializationOptions
OR.lsp/config.edn
aadditional-snippets
key/value:$current-form
and replace by the current selected form finding it via row and column provided on completionContext when completing.The text was updated successfully, but these errors were encountered: