neoclide / coc-html

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

lit-element support #2

Closed utrumo closed 5 years ago

utrumo commented 5 years ago

How can i configure this to work with lit-element?

Code example:

import { LitElement, html, css, svg } from 'lit-element';

class ExampleComponent extends LitElement {
  static get styles() {
    return css`
      p {
        color: green;
      }
    `;
  }

  render() {
    return html`
      <p>This is example of html markup and svg</p>
      ${svg`
        <svg height="100" width="100">
          <circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" />  
        </svg> 
      `}
    `;
  }
}
window.customElements.define('example-component', ExampleComponent);

Documentation with more examples: https://lit-element.polymer-project.org/guide/templates

chemzqm commented 5 years ago

You can't, you need a language server that extend tsserver