Jezda1337 / nvim-html-css

CSS Intellisense for HTML
121 stars 14 forks source link

[enhancement] Options to include frameworks like angular #22

Closed gipo355 closed 6 months ago

gipo355 commented 6 months ago

When using angular, files are not directly linked into the htmls.

They are standalone css sibling files declared as a prop in the component typescript file.

There are also global css files that can be added to angular.json or imported in the root html.

Would there be a way to add an option to scan cwd files to include them even if not directly linked?

Jezda1337 commented 6 months ago

To use the plugin, you need to set the type of file you want it to listen to in the options. For example, if you want to use CSS, you would setfile_extensions = { "css" } in the options. The plugin then stages all the CSS files inside the current working directory, so you can get all the classes and ids from those files. You don't need to link any files. I have checked my Angular project, and everything works fine.

image

gipo355 commented 6 months ago

must be a misconfig on my side then, will check asap

gipo355 commented 6 months ago

yes indeed, adding the option loads them all, i thought it was the default config!

Thank you