From a7fc77f52e0a54f19919a31effa94466ce0a922c Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Tue, 10 Dec 2024 21:23:39 +0000 Subject: [PATCH] fix(language/yaml): switch back to yaml-mode Turns out yaml-ts-mode forces 4-space indentation with no options to changes it. --- modules/languages/siren-yaml.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/languages/siren-yaml.el b/modules/languages/siren-yaml.el index a563745..f79abb3 100644 --- a/modules/languages/siren-yaml.el +++ b/modules/languages/siren-yaml.el @@ -87,9 +87,11 @@ or *.yaml file in a .github/workflows/ directory." (siren-flycheck-setup-yaml-actionlint)) (when (fboundp 'yaml-ts-mode) + ;; TODO: Revisit yaml-ts-mode at some point in the future when it no longer + ;; forces the use of 4-space indentation. (use-package yaml-ts-mode :straight (:type built-in) - :mode "\\.ya?ml\\'" + ;; :mode "\\.ya?ml\\'" :hook (yaml-ts-mode . siren-yaml-ts-mode-setup) :preface