Adds support for postcss in web-mode
This commit is contained in:
8
.emacs
8
.emacs
@@ -209,6 +209,7 @@
|
||||
)
|
||||
(custom-set-faces
|
||||
'(lsp-ui-doc-background ((t (:background "#373B41")))))
|
||||
(add-to-list 'lsp-language-id-configuration '("\\.postcss\\'" . "css"))
|
||||
(advice-add 'lsp :before
|
||||
(lambda (&rest _args)
|
||||
(eval '(setf (lsp-session-server-id->folders (lsp-session)) (ht)
|
||||
@@ -569,8 +570,11 @@
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
(use-package web-mode
|
||||
:mode "\\.html?\\'" "\\.svelte\\'"
|
||||
:interpreter "html" "svelte"
|
||||
:mode "\\.html?\\'" "\\.svelte\\'" "\\.\\(post\\)?css\\'"
|
||||
:interpreter "html" "css" "svelte"
|
||||
:config
|
||||
(setq web-mode-content-types-alist
|
||||
'(("css" . "\\.\\(post\\)?css\\'")))
|
||||
:hook
|
||||
(web-mode . lsp-deferred)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user