Revert "[Emacs] Enable prettier-js and lsp for webmode by default"
This reverts commit 31817f8452
.
After this commit, web-mode stopped being enabled by default when
opening Vue files. This might have affected other file types.
This commit is contained in:
parent
897499394b
commit
78ae3da3b1
@ -7321,11 +7321,8 @@ languages in the same buffer, mainly HTML, CSS, and Javascript.
|
|||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package web-mode
|
(use-package web-mode
|
||||||
:defer t
|
:defer t
|
||||||
:after (prettier-js)
|
|
||||||
:straight (:build t)
|
:straight (:build t)
|
||||||
:hook ((html-mode . web-mode)
|
:hook ((html-mode . web-mode))
|
||||||
(web-mode . lsp-deferred)
|
|
||||||
(web-mode . prettier-js-mode))
|
|
||||||
:mode (("\\.phtml\\'" . web-mode)
|
:mode (("\\.phtml\\'" . web-mode)
|
||||||
("\\.tpl\\.php\\'" . web-mode)
|
("\\.tpl\\.php\\'" . web-mode)
|
||||||
("\\.twig\\'" . web-mode)
|
("\\.twig\\'" . web-mode)
|
||||||
@ -7509,8 +7506,8 @@ And finally, here is a formatter for Javascript.
|
|||||||
(use-package prettier-js
|
(use-package prettier-js
|
||||||
:defer t
|
:defer t
|
||||||
:straight (:build t)
|
:straight (:build t)
|
||||||
:after (rjsx-mode typescript-mode)
|
:after (rjsx-mode web-mode typescript-mode)
|
||||||
:hook ((rjsx-mode typescript-mode) . prettier-js-mode)
|
:hook ((rjsx-mode web-mode typescript-mode) . prettier-js-mode)
|
||||||
:config
|
:config
|
||||||
(csetq prettier-js-args '("--single-quote" "--jsx-single-quote")))
|
(csetq prettier-js-args '("--single-quote" "--jsx-single-quote")))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
Loading…
Reference in New Issue
Block a user