sublimelsp / LSP-tailwindcss

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

Angular - Ngx HTML Templates #55

Closed JimFrostig closed 1 year ago

JimFrostig commented 1 year ago

Hi! I want to work with tailwindcss in my angular project. Unfortunately there seems to be a problem with templating. i used the Ngx HTML plugin. When i open such nix HTML file, the tailwind lsp unfortunately doesn't start. It runs on .ts, .html , *.scss etc. Are there any tips how i can get it configured to work ?

Greetings :)

...

Oh, I got it myself. In the tailwind lsp config for sublime text 4 extend the selector string with | text.html.ngx. Then everything works :)

so it looks like that { ..., "selector": "source.jsx | source.js.react | source.js | source.tsx | source.ts | source.css | source.scss | source.less | text.html.vue | text.html.svelte | text.html.basic | text.html.twig | text.blade | text.html.blade | embedding.php | text.html.rails | text.html.erb | text.haml | text.jinja | text.django | text.html.elixir | text.html.ngx", ... }