Description
Using the tailwindcss lsp together with emacs web mode in doom emacs is sadly not so easy as it seems. As I love tinkering with my configuration i sometimes need to switch between eglot and lsp-mode.
In general lsp-mode works much better (from my experience) than with eglot. Thats my I want to document it.
Installation
packages.el
(package! lsp-tailwindcss :recipe (:host github :repo "merrickluo/lsp-tailwindcss"))
config.el
(after! lsp-mode
(use-package! lsp-tailwindcss
:config
(setq lsp-tailwindcss-add-on-mode t
lsp-tailwindcss-server-version "0.14.8"
lsp-tailwindcss-skip-config-check t)))