merrickluo / lsp-tailwindcss

the lsp-mode client for tailwindcss
GNU General Public License v3.0
180 stars 21 forks source link

Usage in Clojurescript? #52

Open joshcho opened 1 year ago

joshcho commented 1 year ago

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).

merrickluo commented 1 year ago
  1. add the major mode use in clojurescript to lsp-tailwindcss-major-modes
  2. make sure there is a tailwind.config.js somewhere
zikajk commented 1 year ago

@joshcho Were you able to solve this? I am trying to use this one with Eglot and CLJS...

merrickluo commented 1 year ago

@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.

zikajk commented 1 year ago

@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

merrickluo commented 1 year ago

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,