Skip to main content
Back to Extensions Directory
coc.nvim fallback icon

coc-css

chemzqm

Css extension for coc.nvim

Installation CommandVim prompt
:CocInstall coc-css
Publisher
chemzqm
Version
v2.1.0
npm package
coc-css
Requirements
coc ^0.0.82
License
MIT
Repository
Not published
npm latest published 2023-09-03Registry checked 2026-08-23Registry summary

Published Package Summary

coc-css

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

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

Open source file

v2.0.0 2022-11-03

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