npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

coc-html

v1.8.0

Published

Html extension for coc.nvim

Downloads

3,091

Readme

coc-html

Html language server extension for coc.nvim.

Code changed from html extension of VSCode

Supporting

If you like this extension, consider supporting me on Patreon or PayPal:

Install

In your vim/neovim, run command:

:CocInstall coc-html

Features

  • Completion provider
  • Formatting
  • Document Symbols & Highlights
  • Document Links
  • CSS mode
  • Javascript mode

Configuration options

Checkout :h coc-configuration for how to use configurations with coc.nvim.

  • html.execArgv: default: []
  • html.filetypes: default: ["html","handlebars","htmldjango","blade"]
  • html.customData: default: []
  • html.completion.attributeDefaultValue: Controls the default value for attributes when completion is accepted default: "doublequotes" Valid options: ["doublequotes","singlequotes","empty"]
  • html.format.enable: Enable/disable default HTML formatter default: true
  • html.format.wrapLineLength: Maximum amount of characters per line (0 = disable) default: 120
  • html.format.unformatted: List of tags, comma separated, that shouldn't be reformatted. 'null' defaults to all tags listed at https://www.w3.org/TR/html5/dom.html#phrasing-content default: "wbr"
  • html.format.contentUnformatted: List of tags, comma separated, where the content shouldn't be reformatted. 'null' defaults to the 'pre' tag default: "pre,code,textarea"
  • html.format.indentInnerHtml: default: false
  • html.format.preserveNewLines: Controls whether existing line breaks before elements should be preserved. Only works before elements, not inside tags or for text default: true
  • html.format.maxPreserveNewLines: default: null
  • html.format.indentHandlebars: default: false
  • html.format.extraLiners: default: "head, body, /html"
  • html.format.wrapAttributes: Wrap attributes default: "auto" Valid options: ["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]
  • html.format.wrapAttributesIndentSize: default: null
  • html.format.templating: Honor django, erb, handlebars and php templating language tags default: false
  • html.format.unformattedContentDelimiter: default: ""
  • html.suggest.html5: Configures if the built-in HTML language support suggests HTML5 tags, properties and values default: true
  • html.validate.scripts: Configures if the built-in HTML language support validates embedded scripts default: true
  • html.validate.styles: Configures if the built-in HTML language support validates embedded styles default: true
  • html.autoClosingTags: Enable/disable autoClosing of HTML tags default: true
  • html.autoCreateQuotes: Enable/disable auto creation of quotes for HTML attribute assignment. default: true
  • html.hover.documentation: Show tag and attribute documentation in hover default: true
  • html.hover.references: Show references to MDN in hover default: true
  • html.trace.server: Traces the communication between coc.nvim and the HTML language server default: "off" Valid options: ["off","messages","verbose"]

Trigger completion in coc-settings.json for complete list.

F.A.Q

Q: I can't select the complete item by <C-n> and <C-p>

A: Some completion item requires insert position after current cursor position which is invalid for <C-n> and <C-p> on vim, you can use <up> and <down> key for selection, or use api coc#_select_confirm() to select and confirm selection which is recommended.

License

MIT