We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce94748 commit 3743af3Copy full SHA for 3743af3
clojure-ts-mode.el
@@ -1129,8 +1129,8 @@ See `clojure-ts--standard-definition-node-name' for the implementation used.")
1129
1130
(defun clojure-ts--outline-level ()
1131
"Return the current level of the outline heading at point."
1132
- (let* ((node (treesit-outline--at-point))
1133
- (node-text (treesit-node-text node)))
+ (when-let* ((node (treesit-thing-at (point) #'clojure-ts--outline-predicate))
+ (node-text (treesit-node-text node)))
1134
(string-match ";;\\(;+\\) " node-text)
1135
(- (match-end 1) (match-beginning 1))))
1136
0 commit comments