Jezda1337 / nvim-html-css

CSS Intellisense for HTML

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[enhancement] Options to include frameworks like angular

gipo355 opened this issue · comments

commented

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?

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 set file_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

commented

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

commented

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

Thank you