tonsky / Clojure-Sublimed

Clojure support for Sublime Text 4
MIT License
359 stars 22 forks source link

Evaluating without selection doesn't evaluate topmost form #33

Closed trafnar closed 2 years ago

trafnar commented 2 years ago

I'm new to clojure, sorry if this is a misguided question.

The basic "Clojure REPL: Evaluate" command seems to try to evaluate only the character at my cursor, not the top most form. Any idea what is wrong with my setup, or if this is some kind of bug?

With my cursor between ( and + I get this result: image

With the entire line selected, I get 2

tonsky commented 2 years ago

Interesting!

Have you set syntax to Clojure (Sublime Clojure)?

trafnar commented 2 years ago

Oh, that was the problem! I did see that in the docs, an I thought I had set it appropriately, but I guess not. Thanks for the help.

tonsky commented 2 years ago

Yeah, it’s a thing that’s too easy to miss. Eventually I hope I get rid of this limitation