lsp-tailwindcss icon indicating copy to clipboard operation
lsp-tailwindcss copied to clipboard

Usage in Clojurescript?

Open joshcho opened this issue 2 years ago • 5 comments

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

joshcho avatar Dec 16 '22 14:12 joshcho

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

merrickluo avatar Dec 19 '22 07:12 merrickluo

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

zikajk avatar Feb 13 '23 11:02 zikajk

@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 avatar Feb 15 '23 05:02 merrickluo

@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

zikajk avatar Feb 15 '23 06:02 zikajk

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,

merrickluo avatar Feb 15 '23 14:02 merrickluo