diff options
| author | Luke Hoersten <[email protected]> | 2026-08-01 11:26:24 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2026-08-01 11:26:24 -0500 |
| commit | 47d617ce16a47dcf39a9e96d0b8773875597edbc (patch) | |
| tree | 263a634688ec3b7118f24efc5793b3b532b23ce2 | |
| parent | 56e578c1afbcfe19597880e5f1816efd2f0c7f0f (diff) | |
| -rw-r--r-- | init.el | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -278,6 +278,7 @@ tsx-ts-mode-hook c-ts-mode-hook c++-ts-mode-hook + rust-ts-mode-hook yaml-ts-mode-hook json-ts-mode-hook css-ts-mode-hook @@ -285,12 +286,25 @@ haskell-mode-hook)) (add-hook hook 'eglot-ensure)) +;;; yaml-language-server: keep syntax validation but disable schema matching, +;;; which otherwise mis-validates host_vars/group_vars files against the +;;; Ansible playbook schema (from the SchemaStore catalog) and flags them wrong. +(setq-default + eglot-workspace-configuration + '(:yaml (:validate t + :schemaStore (:enable :json-false) + :schemas ()))) + ;;; treesit-auto (automatically use tree-sitter modes and install grammars) (require 'treesit-auto) (setq treesit-auto-install t) (global-treesit-auto-mode) +;;; rust (built-in rust-ts-mode; unlike most ts modes it registers no file +;;; association itself, and treesit-auto only remaps existing ones) +(add-to-list 'auto-mode-alist '("\\.rs\\'" . rust-ts-mode)) + ;;; emacs server (for emacsclient) (require 'server) |
