Skip to main content
Back to Extensions Directory
coc-html icon

Html extension for coc.nvim

Installation CommandVim prompt
:CocInstall coc-html
GitHub owner
Neoclide
Version
v1.9.2
npm package
coc-html
Requirements
coc ^0.0.80
License
MIT
Repository
GitHub
npm latest published 2026-10-11Node >=22Registry summary
Try in browser ↗

Published Package Summary

coc-html logo

coc-html

Html language server extension for coc.nvim.

Code changed from html extension of VSCode

Install

In your vim/neovim, run command:

:CocInstall coc-html

Features

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

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.

Development

Use Node.js 22.15 or newer and npm 11.9.0. Install dependencies from the committed npm lockfile, then build and validate:

npm ci
npm run build
npm run lint
npm test

The integration tests run both Neovim and Vim; both editors must be installed.

License

MIT

Read the complete README
  • Html extension for coc.nvim
Activation Events
  • *
Developer Resources

Want to build, test, or contribute to coc.nvim extensions? Explore our official SDK and testing toolkits.

Open Developer Guide

Version History

Published with coc-html@1.9.2 as history.md.

Open source file

1.9.2

  • fix: update coc-test for authenticated release downloads (#66) (e13cf24)
  • ci: not download coc.nvim (4be348c)

1.9.1

  • ci: add daily automated release workflow (e8bb2cc)
  • docs: remove upstream sync ledger (1f1450a)
  • chore: standardize npm and shared dependency versions (#65) (bf3e52f)
  • Merge pull request #64 from neoclide/codex/upstream-sync-20261003 (b056e89)
  • chore: sync documentation branch with merged HTML changes (d946aed)
  • Update coc-html (b4ccf68)
  • feat: sync upstream HTML and CSS language services (#63) (21bbc07)
  • docs: clarify local upstream baseline provenance (eb1ae3d)
  • feat: sync upstream HTML and CSS language services (7e585d6)

1.9.0

  • Sync the HTML and embedded CSS language services with VS Code's September 2026 versions while retaining the Coc server bundle and settings.
  • Require Node.js 22 and migrate development and CI workflows to npm.
  • Improve embedded CSS and JavaScript handling, including isolated validation for module scripts.
  • Include JSDoc summaries and tags in JavaScript hover content.
  • Improve language-server activation recovery and automatic-insertion cleanup.
  • Add Vim and Neovim integration tests.

1.8.0

  • Remove configuration html.format.endWithNewline>
  • Remove configuration html.validate.html.
  • Remove configuration html.enable.
  • Check format configuration before register formatter provider.