@@ -499,11 +499,14 @@ By default `treesit-defun-name-function' is used to extract definition names.
499
499
See `clojure-ts--standard-definition-node-name' for the implementation used." )
500
500
501
501
(defcustom clojure-ts-indent-style 'semantic
502
- " Automatic indentation style to use when mode clojure-ts-mode is run
502
+ " Automatic indentation style to use when mode ` clojure-ts-mode' is run.
503
503
504
504
The possible values for this variable are
505
- `semantic' - Tries to follow the same rules as the clojure style guide.
506
- See: https://guide.clojure.style/
505
+ `semantic' - Semantic indentation.
506
+ Tries to follow the same rules as cljfmt with default settings.
507
+ See:
508
+ - https://github.com/weavejester/cljfmt
509
+ - https://guide.clojure.style/
507
510
`fixed' - A simpler set of indentation rules that can be summarized as
508
511
1. Multi-line lists that start with a symbol are always indented with
509
512
two spaces.
@@ -512,8 +515,8 @@ The possible values for this variable are
512
515
See: https://tonsky.me/blog/clojurefmt/"
513
516
:safe #'symbolp
514
517
:type
515
- '(choice (const :tag " Semantic indent rules, matching clojure style guide ." semantic)
516
- (const :tag " Simple fixed indent rules." fixed ))
518
+ '(choice (const :tag " Semantic indentation rules." semantic)
519
+ (const :tag " Simple fixed indentation rules." fixed ))
517
520
:package-version '(clojure-ts-mode . " 0.2.0" ))
518
521
519
522
(defvar clojure-ts--fixed-indent-rules
@@ -655,7 +658,8 @@ See `treesit-simple-indent-rules'."
655
658
((eq clojure-ts-indent-style 'fixed ) clojure-ts--fixed-indent-rules)
656
659
(t (error
657
660
(format
658
- " Invalid value for clojure-ts-indent-style. Valid values are 'semantic or 'fixed. Found %S"
661
+ " Invalid value for clojure-ts-indent-style. Expected one of '%S, but found '%S instead."
662
+ '(semantic fixed )
659
663
clojure-ts-indent-style)))))
660
664
661
665
(defvar clojure-ts-mode-map
0 commit comments