sublimelsp / LSP-tailwindcss

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

TailwindCSS and LSP-Tailwind config #43

Closed jeff-grinta closed 2 years ago

jeff-grinta commented 2 years ago

Hi,

I'm trying to get TailwindCSS to work along side LSP-Tailwind. By default when setting the language to CSS, LSP features work out of the box. However when setting it to Tailwind CSS these features are disabled. I've tried to add the following to the config: source.css.tailwind to `"selector"

{
    "languageId": "css",
    "scopes": ["source.css", "source.css.tailwind"],
    "syntaxes": [
        "Packages/CSS/CSS.sublime-syntax",
        "Packages/CSS3/CSS3.sublime-syntax",
        "Packages/Tailwind CSS/Tailwind CSS.sublime-syntax"
    ]
},

to "languages" but it didn't change anything.

Any idea on how to get the two working together?

predragnikolic commented 2 years ago

Cannot reproduce. LSP-tailwindcss.sublime-settings looks like this:

{
    "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 | embedding.php | text.html.rails | text.haml | source.css.tailwind"
}

Screenshot 2022-08-10 at 16 19 21

NOTE: the LSP-tailwindcss server will start in a project that has tailwind.config.js in the project(as mentioned in the readme https://github.com/sublimelsp/LSP-tailwindcss#installation)

predragnikolic commented 2 years ago

I will close they because this can't be reproduced.

Feel free to reopen this issue if it still exist, but please provide a repository to reproduce the issue.