fork from a ecmel/vscode-html-css | HTML CSS Support
HTML id and class attribute "completion" for coc.nvim.
:CocInstall coc-html-css-support
- HTML id and class attribute completion.
- Supports linked and embedded style sheets.
- Supports template inheritance.
- Supports additional style sheets.
- Supports other HTML like languages.
- Command to make
html.customData
built-in incoc-html-css-support
available at the workspace level.- Require coc-html
html-css-support.enable
: Enable coc-html-css-support extension, default:true
html-css-support.enabledLanguages
: List of languages which suggestions are desired, default:["html"]
html-css-support.styleSheets
: List of local or remote style sheets for suggestions, default:[]
html-css-support.dispose
: Clear cache and reload the stylesheethtml-css-support.customDataSetup
: Setuphtml.customData
in workspace config. Supported customData are as followsAlpine.js
petite-vue
coc-settings.json:
{
"html-css-support.styleSheets": [
"https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css",
"/style.css",
"style.css"
]
}
coc-settings.json:
{
"html-css-support.enabledLanguages": [
"html",
"vue",
"blade",
"htmldjango",
"typescriptreact",
"javascriptreact"
]
}
You can read more about customData in the following repositories.
- https://github.com/microsoft/vscode-custom-data
- https://github.com/Microsoft/vscode-html-languageservice/blob/main/docs/customData.md
- ecmel/vscode-html-css : The origin of this repository.
MIT
This extension is built with create-coc-extension