Skip to content

Commit 8afa565

Browse files
authored
Add defn- to imenu's definition detection (#41)
1 parent eab7dc3 commit 8afa565

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clojure-ts-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ Can be called directly, but intended for use as `treesit-defun-name-function'."
580580
(treesit-node-text name)))))))
581581

582582
(defvar clojure-ts--function-type-regexp
583-
(rx string-start (or "defn" "defmethod") string-end)
583+
(rx string-start (or (seq "defn" (opt "-")) "defmethod") string-end)
584584
"Regular expression for matching definition nodes that resemble functions.")
585585

586586
(defun clojure-ts--function-node-p (node)

0 commit comments

Comments
 (0)