-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clojure / general lisp support #183
Comments
I would be happy to support lisp-like filetypes, but I don't have practical experience with them, so I don't know what kinds of splits and joins would make sense, what settings to provide, etc. If you use a lisp yourself, do you have any specific transformations you do often that the plugin could support? Maybe a few before/after examples of code snippets? |
Absolutely. My only experience is as a novice Clojure/ClojureScript Simple examples, this calls the function (+ 2 3 4 5) (+
2
3
4
5)
From my project, this is properly indented and the brackets appear where they should: (dispatch [::events/insert-staff-entry
day-ord
shift
unit
@why
@who]) Would be nice to go to this, and back: (dispatch [::events/insert-staff-entry day-ord shift unit @why @who]) If you need more discussion/research, I will help. |
I've added some basic support to the main branch -- could you pull and try it out? If it works well for some of your real code, I'll write up some documentation, and if there's edge cases I haven't considered, I'll see what I can do to work them out. |
Thanks, very cool. I'll play with it at work next week and collect my experience. |
Still working on my report, thanks again |
Want to thank you for this, I had to move away from using Clojure at work for a while but I still intend to report back here. |
This is already useful as is—thank you. Here's an issue: (map (fn [[d s u i]] ^{:key i}
[:tr
[:td
[row d s u i]
"DOG"]])
staff-keys) If I position the cursor on (map (fn [[d s u i]] ^{:key i}
[:tr
[:td [row d s u i] "DOG"]])
staff-keys) What I get is: (map (fn [[d s u i]] ^{:key i}
[:tr
[:td [row d s u i] "DOG"]]) staff-keys) |
It's funny, I was just fixing a very similar bug for a separate problem 😅. So at least I know what the issue is -- it should be fixed now. |
It does look fixed. I'll let you know what else I come across this week as I'm back at my Clojure/Script projects. |
Any plans for supporting Clojure and/or lisps generally?
The text was updated successfully, but these errors were encountered: