clojure-emacs / clojure-ts-mode

The next generation Clojure major mode for Emacs, powered by TreeSitter
GNU General Public License v3.0
140 stars 13 forks source link

Support equivalent of clojure-toplevel-inside-comment-form #30

Closed kommen closed 9 months ago

kommen commented 10 months ago

Given this code (| being the cursor)

(comment
  (+ 1 1)|)

Expected behavior

Have an option equivalent to clojure-toplevel-inside-comment-form so running cider-eval-defun-at-point evals to 2, as there is for clojure-mode.

Actual behavior

running cider-eval-defun-at-point with clojure-ts-mode evals to nil as clojure-ts-mode as doesn't seem to have an equivalent option to clojure-toplevel-inside-comment-form

clojure-ts-mode version

clojure-ts-mode (version 0.2.0)