Variable: cider-directory-prefixes
cider-directory-prefixes is a customizable variable defined in
cider-client.el.
Value
("\\`clj[scxd]?\\.")
Documentation
Namespace prefixes to strip after deriving a ns from a file path.
Used by cider-expected-ns to discard intermediate source directories
that aren't really part of the namespace, e.g. a file at
"src/clj/foo/bar.clj" should give the namespace "foo.bar" rather
than "clj.foo.bar".
This variable was added, or its default value changed, in cider version 1.22.0.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-client.el
(defcustom cider-directory-prefixes
'("\\`clj[scxd]?\\.")
"Namespace prefixes to strip after deriving a ns from a file path.
Used by `cider-expected-ns' to discard intermediate source directories
that aren't really part of the namespace, e.g. a file at
\"src/clj/foo/bar.clj\" should give the namespace \"foo.bar\" rather
than \"clj.foo.bar\"."
:type '(repeat string)
:group 'cider
:safe (lambda (value)
(and (listp value)
(cl-every #'stringp value)))
:package-version '(cider . "1.22.0"))