neoclide / coc-html

Html language server extension for coc.nvim.
208 stars 6 forks source link

Docs improvement/Quesion: How the ‘custom tag’ supposed to work? #45

Closed jaandrle closed 2 years ago

jaandrle commented 2 years ago

Hi, I’m trying to register custom elements tags. My naive approach was to create coc-settings.json in projects root folder with this content

{
    "html.experimental.custom.tags": [
        "build/source/core/docs/globalComponents.json"
    ]
}

…so my root folder looks like:

build/
coc-settings.json
…

I have also tried to add this in ~/.vim/coc-settings.json and different path formats (full path, …). But, nothing seems to work.

tech. specs.:

chemzqm commented 2 years ago

Seems your data is used for html.customData.desc which not supported by coc-html by now.

chemzqm commented 2 years ago

Fixed by b5f4aea, use html.customData configuration instead and the filepath should be relative to your workspace folder.