yaegassy / coc-tailwindcss3

Intelligent Tailwind CSS tooling for coc.nvim
https://www.npmjs.com/package/@yaegassy/coc-tailwindcss3
MIT License
204 stars 2 forks source link

How to force start in monorepo #33

Open AkisArou opened 9 months ago

AkisArou commented 9 months ago

I have a monorepo that does not have a tailwind.config.js/ts file at the root. I have packages that do have a config, and the language server works fine. But other packages that do not have, and still have tsx files, I do not have intellisense. When adding a dummy tailwind.config.js file at the root, it does work, but when I am into a package that has a nested config file, I do not have intellisense for the custom colors etc. :CocCommand tailwindCSS.forceActivate as you mentioned in another issue, do not exist anymore. How can I have default tailwind intellisense for common classes in packages that do not have a config file? And when I am in a package that does have, use this. Is force starting the language server even without a found config file possible to get intellisense? Thanks!

Edit: In nvim-lspconfig I can do the following: tailwindCSS.experimental.configFile but does not exist in coc-tailwindcss3

phaabe commented 7 months ago

I am interested in something similar. It should be working in an index.html file with a header like <script src="https://cdn.tailwindcss.com"></script> .

Workaround for now though: add a tailwind config file.