[Emacs] Enable LSP for web-mode buffers
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Lucien Cartier-Tilet 2022-08-16 13:39:29 +02:00
parent d7af354c40
commit 262119b8e2
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -7324,6 +7324,7 @@ languages in the same buffer, mainly HTML, CSS, and Javascript.
:straight (:build t) :straight (:build t)
:hook html-mode :hook html-mode
:hook (web-mode . prettier-js-mode) :hook (web-mode . prettier-js-mode)
:hook (web-mode . lsp-deferred)
:mode (("\\.phtml\\'" . web-mode) :mode (("\\.phtml\\'" . web-mode)
("\\.tpl\\.php\\'" . web-mode) ("\\.tpl\\.php\\'" . web-mode)
("\\.twig\\'" . web-mode) ("\\.twig\\'" . web-mode)