lsp-tailwindcss
lsp-tailwindcss copied to clipboard
Usage in Clojurescript?
make sure to read the troubleshooting guide first.
This is a bit of a shot in the dark, but is it possible to use lsp-tailwindcss in clojurescript? I tried add-on, but it doesn't work (as expected).
- add the major mode use in clojurescript to
lsp-tailwindcss-major-modes
- make sure there is a
tailwind.config.js
somewhere
@joshcho Were you able to solve this? I am trying to use this one with Eglot and CLJS...
@zikajk FYI you don't need this package for using with eglot, and you can't use two language servers in a single buffer with eglot too.
@merrickluo Right. By "you don't need this package..." do you mean there is some other way to get Eglot + Tailwind LSP working? If not, i will wait until Eglot get this feature
eglot works differently with lsp-mode, theoretically, you only need to tell it how to start a language server, for example, if you want to use tailwindcss language server in clojurescript-mode
.
(add-to-list 'eglot-server-programs
'((clojurescript-mode :language-id "html") . ("tailwindcss-language-server")))
it may or may not work, since tailwindcss's language server might need some specific config. I'll probably try it out when eglot got multiple server support, cuz using it alone doesn't make much sense xD,