Use yaml-ts-mode and yaml-pro-mode instead of yaml-language-server

This commit is contained in:
Jeremy Dormitzer 2024-05-03 21:39:54 -04:00
parent 3f7dc1c744
commit 3a74967ee3
2 changed files with 6 additions and 3 deletions

View File

@ -235,7 +235,6 @@
(ruby-ts-mode . eglot-ensure) (ruby-ts-mode . eglot-ensure)
(sh-mode . eglot-ensure) (sh-mode . eglot-ensure)
(bash-ts-mode . eglot-ensure) (bash-ts-mode . eglot-ensure)
(yaml-mode . eglot-ensure)
(astro-ts-mode . eglot-ensure) (astro-ts-mode . eglot-ensure)
:custom :custom
(eglot-confirm-server-initiated-edits nil) (eglot-confirm-server-initiated-edits nil)

View File

@ -1,9 +1,13 @@
;; -*- lexical-binding: t; -*- ;; -*- lexical-binding: t; -*-
;; YAML - literally the worst but still holds an important place in my life ;; YAML - literally the worst but still holds an important place in my life
(use-package yaml-mode (use-package yaml-ts-mode
:mode ("\\.yaml\\'" "\\.yml\\'") :mode ("\\.yaml\\'" "\\.yml\\'")
:config :config
(add-hook 'yaml-mode-hook #'highlight-indent-guides-mode)) (add-hook 'yaml-ts-mode-hook #'highlight-indent-guides-mode))
(use-package yaml-pro
:when (treesit-ready-p 'yaml)
:hook (yaml-ts-mode . yaml-pro-ts-mode))
(provide 'init-yaml) (provide 'init-yaml)