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.0
npm package
coc-html
Requirements
coc ^0.0.80
License
MIT
Repository
GitHub
npm latest published 2026-08-29Registry checked 2026-08-31Node >=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.

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.0 as history.md.

Open source file

1.9.0

  • 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.