Remove LSP from yaml.
This commit is contained in:
parent
c5cc2a36e1
commit
64b8a3258b
@ -1,12 +1,3 @@
|
|||||||
;; (defun yaml-backspace (arg)
|
|
||||||
;; "Special handling of yaml backspace."
|
|
||||||
;; (interactive "*p")
|
|
||||||
;; (if mark-active
|
|
||||||
;; (backward-delete-char-untabify arg)
|
|
||||||
;; (yaml-electric-backspace arg)
|
|
||||||
;; )
|
|
||||||
;; )
|
|
||||||
|
|
||||||
(defun yaml-format-buffer ()
|
(defun yaml-format-buffer ()
|
||||||
"Run prettier."
|
"Run prettier."
|
||||||
(interactive)
|
(interactive)
|
||||||
@ -21,15 +12,9 @@
|
|||||||
)
|
)
|
||||||
:hook (
|
:hook (
|
||||||
(yaml-ts-mode . (lambda ()
|
(yaml-ts-mode . (lambda ()
|
||||||
(setq eglot-workspace-configuration
|
|
||||||
(list (cons ':yaml (list ':hover :json-false :validate :json-false :completion t))))
|
|
||||||
(eglot-ensure)
|
|
||||||
(add-hook 'before-save-hook 'yaml-format-buffer nil 'local)
|
(add-hook 'before-save-hook 'yaml-format-buffer nil 'local)
|
||||||
))
|
))
|
||||||
)
|
)
|
||||||
;; :bind (
|
|
||||||
;; (:map yaml-ts-mode-map ([backspace] . yaml-backspace))
|
|
||||||
;; )
|
|
||||||
:init
|
:init
|
||||||
(add-to-list 'major-mode-remap-alist '(yaml-mode . yaml-ts-mode))
|
(add-to-list 'major-mode-remap-alist '(yaml-mode . yaml-ts-mode))
|
||||||
(add-to-list 'treesit-language-source-alist '(yaml "https://github.com/ikatyang/tree-sitter-yaml"))
|
(add-to-list 'treesit-language-source-alist '(yaml "https://github.com/ikatyang/tree-sitter-yaml"))
|
||||||
|
Loading…
Reference in New Issue
Block a user