New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

coc-class-css

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coc-class-css

CSS class completions in html markup everywhere

  • 1.0.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
0
Weekly downloads
 
Created
Source

Vim/Neovim CoC CSS class selectors completion plugin

coc-class-css CoC is an autocompletion plugin of CSS/PostCSS/SCSS classes in HTML like markup.

screenshot

All you need is to configure root css files to start from.

Requirements

  • CoC vim plugin v0.0.80+
  • Watchman installed in order to update completion index when files changed.

Installation

:CocInstall coc-class-css

Configuration

Place a .coc-class-css.json file alongside of your package.json like this:

{
  "cssRoots": ["./src/index.css"],
  "classAttributes": ["class"]
}

Where cocRoots specifies css files to process. Local @import directives are supported as well.

CoC configuration options.

  • coc-class-css.languages List of file types for which this plugin will be activated. Default: ["html", "svelte", "vue", "javascriptreact"]
  • coc-class-css.cssRoots Initial set of css files.
  • coc-class-css.classAttributes List of class like HTML attributes to trigger autocompletion. Default: ["class"] Note: tailwindCSS.classAttributes is also taken into account.

Tips

For correct autocompletion for keywords with dashes it also recommended to setup b:coc_additional_keywords

autocmd FileType * let b:coc_additional_keywords = ["-"]

Keywords

FAQs

Package last updated on 07 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc