cursive

Issues at: https://git.io/cursive-issues
2020-10-06T06:45:42.073600Z

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

helios 2020-10-06T11:04:20.077300Z

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?

borkdude 2020-10-06T11:04:56.077700Z

may I ask why you don't just use .clj or .cljc @helios?

๐Ÿ’ก 1
borkdude 2020-10-06T11:05:54.078200Z

you may be able to associate the Clojure file type with some other extension (e.g. .bb)

helios 2020-10-06T15:11:26.078700Z

Because we make self contained executables with the shebang ๐Ÿ™‚ and they normally don't have an extension

helios 2020-10-06T15:11:44.078900Z

Also if i put .clj, cursive thinks it's a "normal" clj file and not a bb script, and it can't resolve anyway

borkdude 2020-10-06T15:23:18.079200Z

I make .clj scripts with shebangs all the time

helios 2020-10-06T15:48:33.079400Z

good for you ๐Ÿ˜‰

borkdude 2020-10-06T15:49:24.079600Z

Shebangs don't exclude extensions, that's just wrong ;)

helios 2020-10-06T20:46:39.079800Z

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

2020-10-06T21:03:49.080900Z

is there any way (via jar or other way) to make cursive aware about dom/js api?

2020-10-06T21:05:11.082500Z

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

cfleming 2020-10-06T21:44:13.082800Z

Yes, I have on my list to fix the symbol resolution in babashka scripts, but I havenโ€™t got to that yet.

cfleming 2020-10-06T21:44:37.083Z

Not at the moment, but itโ€™s on my short list to fix.

๐Ÿ‘ 3