sublimelsp / LSP-tailwindcss

Tailwind css support for Sublime's LSP plugin
MIT License
54 stars 5 forks source link

Use with Elixir - Phoenix Framework #42

Closed sukinoverse closed 1 year ago

sukinoverse commented 2 years ago

Reproduce

Create webapp project

Noted: Phoenix approach is to use standalone tailwind because Phoenix is escape away from node / webpack world, so no node_module inside.

Install LSP on Sublime

Problem

LSP-tailwindcss is started and active for elixir HTML template file. But looks like it's not working, no suggestion, auto-complete and warning given for wrong tailwind class.

Screen Shot 2022-07-09 at 15 21 58
sukinoverse commented 2 years ago

Oh, I just found this comment https://github.com/sublimelsp/LSP-tailwindcss/issues/34#issuecomment-1173915567 Looks like adding "text.html.elixir": "html" to LSP Language ID overrides make it works with Elixir too.

I hope we can have better solution for this 😅

predragnikolic commented 1 year ago

In the new version of LSP-tailwindcss and LSP.

You no longer need to override the language ids and you no longer need to add the "text.html.elixir" to the selector.

Just give PackageControl 1 to 3h to pick up the new LSP 4070-1.20.0 release.

predragnikolic commented 1 year ago

Also thanks for this issue! It is pretty good report :)