Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage in Clojurescript? #52

Open
joshcho opened this issue Dec 16, 2022 · 5 comments
Open

Usage in Clojurescript? #52

joshcho opened this issue Dec 16, 2022 · 5 comments

Comments

@joshcho
Copy link

joshcho commented Dec 16, 2022

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
Copy link
Owner

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

@zikajk
Copy link

zikajk commented Feb 13, 2023

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

@merrickluo
Copy link
Owner

@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
Copy link

zikajk commented Feb 15, 2023

@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
Copy link
Owner

merrickluo commented Feb 15, 2023

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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants