Open liuyinz opened 5 months ago
Thanks for your work !
But when I use this mode, it turns out it do not support hs-minor-mode which needs variable comment-start and comment-end.
hs-minor-mode
comment-start
comment-end
e.g. in yaml-ts-mode, it defines these two vars above :
yaml-ts-mode
(define-derived-mode yaml-ts-mode text-mode "YAML" "Major mode for editing YAML, powered by tree-sitter." :group 'yaml :syntax-table yaml-ts-mode--syntax-table (when (treesit-ready-p 'yaml) (treesit-parser-create 'yaml) ;; Comments. (setq-local comment-start "# ") (setq-local comment-end "") ;; Indentation. (setq-local indent-tabs-mode nil) ;; Font-lock. (setq-local treesit-font-lock-settings yaml-ts-mode--font-lock-settings) (setq-local treesit-font-lock-feature-list '((comment) (string type) (constant escape-sequence number property) (bracket delimiter error misc-punctuation))) (setq-local fill-paragraph-function #'yaml-ts-mode--fill-paragraph) (treesit-major-mode-setup)))
I don't know if it's currently possible to add this cause Vue has multiple comment-strings, one for the Githubissues.
Thanks for your work !
But when I use this mode, it turns out it do not support
hs-minor-mode
which needs variablecomment-start
andcomment-end
.e.g. in
yaml-ts-mode
, it defines these two vars above :