From 47d617ce16a47dcf39a9e96d0b8773875597edbc Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Sat, 1 Aug 2026 11:26:24 -0500 Subject: Added rust ts. --- init.el | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/init.el b/init.el index 8a180bc..2ef22b4 100644 --- a/init.el +++ b/init.el @@ -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) -- cgit v1.2.3