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

Css extension for coc.nvim

Installation CommandVim prompt
:CocInstall coc-css
GitHub owner
Neoclide
Version
v2.2.4
npm package
coc-css
Requirements
coc ^0.0.82
License
MIT
Repository
GitHub
npm latest published 2026-10-04Registry checked 2026-10-05Node >=22Registry summary
Try in browser ↗

Published Package Summary

coc-css

coc-css logo

Css language server extension for coc.nvim.

Uses vscode-css-languageservice inside.

Note: words are exetracted by iskeyword option of buffer, you may want to adjust it by command like:

autocmd FileType css setl iskeyword+=-

Note configuration css.enable and wxss support removed from 2.0.0.

Install

Requires Node.js 22 or later.

In your vim/neovim, run the command:

:CocInstall coc-css

For scss files, you may need use:

autocmd FileType scss setl iskeyword+=@-@

in your vimrc for add @ to iskeyword option.

Features

All features that vscode-css-languageservice provide should work.

  • doValidation analyzes an input string and returns syntax and lint errros.
  • doComplete provides completion proposals for a given location.
  • doHover provides a hover text for a given location.
  • findDefinition finds the definition of the symbol at the given location.
  • findReferences finds all references to the symbol at the given location.
  • findDocumentHighlights finds all symbols connected to the given location.
  • findDocumentSymbols provides all symbols in the given document
  • doCodeActions evaluates code actions for the given location, typically to fix a problem.
  • findColorSymbols evaluates all color symbols in the given document
  • doRename renames all symbols connected to the given location.
  • getFoldingRanges returns folding ranges in the given document.
  • format format css/scss/less files.

License

MIT

Read the complete README
  • Css extension for coc.nvim
Activation Events
  • onLanguage:css
  • onLanguage:less
  • onLanguage:scss
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-css@2.2.4 as history.md.

Open source file

v2.2.4 2026-10-04

  • Merge pull request #46 from neoclide/codex/upstream-sync-20261003 (58fe612)
  • update coc-css (5b0e605)

v2.2.3 2026-10-03

  • Merge pull request #45 from neoclide/codex/upstream-sync-20261003 (70317c5)
  • docs: clarify local upstream baseline provenance (af7355a)
  • docs: review VS Code CSS upstream through 67cb2a17e24 (7464734)

v2.2.2 2026-08-31

  • fix repository not exists (639ab75)

v2.2.1 2026-08-30

  • add release.yml (d68e720)

v2.2.0 2026-08-29

  • Require Node.js 22 and update the CSS language service and LSP dependencies.
  • Return native quick-fix code actions instead of the legacy apply-command bridge.
  • Prevent stale custom-data loads from replacing newer configuration.
  • Add npm-based type checking and coc-test coverage for Vim and Neovim.

v2.0.0 2022-11-03

  • Format support.
  • Remove configuration css.enable
  • Remove support for wxss.