This will soon be default with Calva Jack-in. But you can use it right now by temporarily changing your jack-in dependency settings. It would be nice if some of you tried that and let us know how you fare. Of course, if you use Calva Connect, you are encouraged to test this as well. 😃
Please try this out, Calva and clojure-lsp friends.
@brandon.ringe The way I implemented the custom snippets was a little tricky, It'd be nice to check if everything works on Calva side indeed
I don’t get any snippet completion. Do I need to do something to enable it? Or do we maybe need to do something in Calva to enable it?
the only validation clojure-lsp does, is the suggested by the https://microsoft.github.io/language-server-protocol/specification#textDocument_completion about checking if client has support for that via the boolean snippetSupport
you may need to check if you are sending that as true
Will do. We might want to do this opt-in for the users.
I noticed that indentation of multi-line docstrings changed recently. It used to be like this:
(defn foo
"This is line one and when you press enter
you got this indentation, aligned with the quote"
[args]
42)
but now you get this:
(defn foo
"This is line one and when you press enter
you get three spaces and you're aligned with the word instead"
[args]
42)
Is this a deliberate change and, if so, what is the justification for it?(pretty much all the Clojure code I’ve seen uses that first indentation style so that’s why this stood out as a noticeable change and it “looked weird”!)
> justification No pun intended? 😄 Really though, I'm unaware of anything that changed that, but @pez might know since he's recently added some paredit changes/improvements.
No pun intended 😞