Use yaml-ts-mode and yaml-pro-mode instead of yaml-language-server
This commit is contained in:
parent
3f7dc1c744
commit
3a74967ee3
@ -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)
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user