{"id":15044787,"url":"https://github.com/softmotions/coc-class-css","last_synced_at":"2025-04-09T19:42:57.934Z","repository":{"id":65104428,"uuid":"579663253","full_name":"Softmotions/coc-class-css","owner":"Softmotions","description":"Vim/Neovim CoC CSS class completion plugin","archived":false,"fork":false,"pushed_at":"2024-11-07T09:58:07.000Z","size":401,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-23T21:45:45.658Z","etag":null,"topics":["autocompletion","coc","coc-extension","coc-plugin","css","html","neovim","nvim","scss","svelte","tailwindcss","vim","vue"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Softmotions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-18T13:10:49.000Z","updated_at":"2025-03-15T09:23:23.000Z","dependencies_parsed_at":"2023-01-13T15:35:10.896Z","dependency_job_id":null,"html_url":"https://github.com/Softmotions/coc-class-css","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Softmotions%2Fcoc-class-css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Softmotions%2Fcoc-class-css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Softmotions%2Fcoc-class-css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Softmotions%2Fcoc-class-css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Softmotions","download_url":"https://codeload.github.com/Softmotions/coc-class-css/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248101299,"owners_count":21047950,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autocompletion","coc","coc-extension","coc-plugin","css","html","neovim","nvim","scss","svelte","tailwindcss","vim","vue"],"created_at":"2024-09-24T20:51:02.472Z","updated_at":"2025-04-09T19:42:57.916Z","avatar_url":"https://github.com/Softmotions.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vim/Neovim CoC CSS class selectors completion plugin\n\n`coc-class-css` [CoC](https://github.com/neoclide/coc.nvim) is an autocompletion plugin of CSS/PostCSS/SCSS\nclasses in HTML like markup.\n\n![screenshot](./images/screen1.png)\n\nAll you need is to configure root css files to start from.\n\n## Requirements\n\n* CoC vim plugin `v0.0.80+`\n* [Watchman](https://facebook.github.io/watchman/) installed in order to update completion index when files changed.\n\n## Installation\n\n```\n:CocInstall coc-class-css\n```\n\n## Configuration\n\n### Recommended way\n\nPlace a `.coc-class-css.json` file alongside of your `package.json` like this:\n\n```json\n{\n  \"cssRoots\": [\"./src/index.css\"],\n  \"classAttributes\": [\"class\"]\n}\n```\n\nWhere `cocRoots` specifies css files to process. Local `@import` directives are supported as well.\n\n### CoC configuration options.\n\n* `coc-class-css.languages` List of file types for which this plugin will be activated.\n   Default: `[\"html\", \"svelte\", \"vue\", \"javascriptreact\"]`\n* `coc-class-css.cssRoots` Initial set of css files.\n* `coc-class-css.classAttributes` List of `class`  like HTML attributes to trigger autocompletion. Default: `[\"class\"]`\n   Note: `tailwindCSS.classAttributes` is also taken into account.\n\n## Tips\n\nFor correct autocompletion for keywords with dashes it also recommended to setup `b:coc_additional_keywords`\n\n```vimscript\nautocmd FileType * let b:coc_additional_keywords = [\"-\"]\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftmotions%2Fcoc-class-css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftmotions%2Fcoc-class-css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftmotions%2Fcoc-class-css/lists"}