antonk52
coc-cssmodules
TypeScript

css modules autocompletion and go to definition coc.nvim plugin

Last updated Apr 30, 2025
71
Stars
0
Forks
9
Issues
0
Stars/day
Attention Score
11
Language breakdown
TypeScript 78.6%
JavaScript 5.7%
SCSS 4.7%
Less 4.3%
Sass 3.5%
CSS 2.5%
โ–ธ Files click to expand
README

coc-cssmodules

[!CAUTION]
This package is deprecated, archived, and unsupported.
>
You should look into cssmodules-language-server with more features and better neovim support via nvim-lspconfig.

coc.nvim plugin for autocompletion and go-to-definition functionality for css modules.

The supported languages are css(postcss), sass and scss. styl files are parsed as regular css.

Installation

:CocInstall coc-cssmodules

Settings

Camel cased css class names

If you write kebab-case classes in css files, but want to get camelCase complete items, set following to true.

{
   "cssmodules.camelCase": true
}

Options and transformation

You can set the cssmodules.camelCase option to true, "dashes" or false(default).

| Classname in css file | true | dashes | false(default) | | --------------------- | ----------------- | --------------- | ----------------- | | .button | .button | .button | .button | | .btnicon--mod | .btnIconMod | .btniconMod | .btn__icon--mod |

hintName setting

You can change the hint name by setting it in the coc-setting.json file. Default is cssmodules

example

{
   "cssmodules.hintName": "cssmodules"
}

Acknowledgments

This plugin was based on vscode-css-modules plugin.

๐Ÿ”— More in this category

ยฉ 2026 GitRepoTrend ยท antonk52/coc-cssmodules ยท Updated daily from GitHub