Am I missing something or does the new yaml-ts-mode not having any rules for indentation? Seems odd in a language where indentation is semantically relevant.

GNU Emacs 29.1 (build 2, x86_64-unknown-linux-gnu, GTK+ Version 3.24.38, cairo version 1.16.0) of 2023-08-03

Treesitter grammar installed and loaded via:

(use-package treesit-auto
  :config
  (add-to-list 'global-treesit-auto-modes '(not org-mode))
  (setq treesit-auto-install t)
  (global-treesit-auto-mode))
  • mickeyp@alien.topB
    link
    fedilink
    English
    arrow-up
    0
    ·
    11 months ago

    It does not have indentation at all. It should, but for reasons, it does not. Furthermore, for reasons that strain credulity, it will highlight ERROR nodes with a font lock face, causing endless graphical flashing as you leave your tree-sitter tree in a brief error-state as you type.

    I recommend you ditch it unless you have a good reason for using it. The third-party yaml-mode.el is excellent.