I've seen styling in emacs where typehints are way lighter colored than the rest of the params. I don't think this is possible in cursive yet, but might be a good alternative
i might have already asked, but is there a way to have syntax highlighting into babashka scripts that have no file extension? or is that something inside intellij that's not easily configurable?
may I ask why you don't just use .clj or .cljc @helios?
you may be able to associate the Clojure file type with some other extension (e.g. .bb)
Because we make self contained executables with the shebang ๐ and they normally don't have an extension
Also if i put .clj
, cursive thinks it's a "normal" clj file and not a bb script, and it can't resolve anyway
I make .clj scripts with shebangs all the time
good for you ๐
Shebangs don't exclude extensions, that's just wrong ;)
Yeah totally. I've used emacs with no problem by just setting the mode with front matter but was hoping there is the same flexibility in intellij. It's not a problem because we use a bb wrapper anyway to auto put the classpath
is there any way (via jar or other way) to make cursive aware about dom/js api?
I generated shadow-cljs project, then generated with it the pom file, to import it correctly from intellij/cursive level. Reagenet is recognized, but I have no idea how to make cursive aware about dom/js contracts
Yes, I have on my list to fix the symbol resolution in babashka scripts, but I havenโt got to that yet.
Not at the moment, but itโs on my short list to fix.