{"id":13600659,"url":"https://github.com/neoclide/coc-css","last_synced_at":"2025-06-21T11:09:18.137Z","repository":{"id":33021851,"uuid":"147616082","full_name":"neoclide/coc-css","owner":"neoclide","description":"Css language server extension for coc.nvim","archived":false,"fork":false,"pushed_at":"2023-09-03T03:32:13.000Z","size":351,"stargazers_count":200,"open_issues_count":2,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-11T00:34:49.234Z","etag":null,"topics":["coc","css","neovim","vim"],"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/neoclide.png","metadata":{"files":{"readme":"Readme.md","changelog":"history.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-06T04:10:22.000Z","updated_at":"2025-03-25T21:37:59.000Z","dependencies_parsed_at":"2024-11-07T03:33:34.444Z","dependency_job_id":null,"html_url":"https://github.com/neoclide/coc-css","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/neoclide/coc-css","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neoclide%2Fcoc-css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neoclide%2Fcoc-css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neoclide%2Fcoc-css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neoclide%2Fcoc-css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neoclide","download_url":"https://codeload.github.com/neoclide/coc-css/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neoclide%2Fcoc-css/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261110622,"owners_count":23111066,"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":["coc","css","neovim","vim"],"created_at":"2024-08-01T18:00:45.959Z","updated_at":"2025-06-21T11:09:13.124Z","avatar_url":"https://github.com/neoclide.png","language":"TypeScript","funding_links":[],"categories":["Plugins / Themes / Dependencies","Language Support","TypeScript"],"sub_categories":[],"readme":"# coc-css\n\nCss language server extension for [coc.nvim](https://github.com/neoclide/coc.nvim).\n\nUses [vscode-css-languageservice](https://github.com/Microsoft/vscode-css-languageservice) inside.\n\n**Note**: words are exetracted by `iskeyword` option of buffer, you may want to\nadjust it by command like:\n\n    autocmd FileType css setl iskeyword+=-\n\n**Note** configuration `css.enable` and wxss support removed from 2.0.0.\n\n## Install\n\nIn your vim/neovim, run the command:\n\n```\n:CocInstall coc-css\n```\n\nFor scss files, you may need use:\n\n```vim\nautocmd FileType scss setl iskeyword+=@-@\n```\n\nin your vimrc for add `@` to iskeyword option.\n\n## Features\n\nAll features that [vscode-css-languageservice](https://www.npmjs.com/package/vscode-css-languageservice) provide should work.\n\n- `doValidation` analyzes an input string and returns syntax and lint errros.\n- `doComplete` provides completion proposals for a given location.\n- `doHover` provides a hover text for a given location.\n- `findDefinition` finds the definition of the symbol at the given location.\n- `findReferences` finds all references to the symbol at the given location.\n- `findDocumentHighlights` finds all symbols connected to the given location.\n- `findDocumentSymbols` provides all symbols in the given document\n- `doCodeActions` evaluates code actions for the given location, typically to fix a problem.\n- `findColorSymbols` evaluates all color symbols in the given document\n- `doRename` renames all symbols connected to the given location.\n- `getFoldingRanges` returns folding ranges in the given document.\n- `format` format css/scss/less files.\n\n## Configuration options\n\nCheckout `:h coc-configuration` in your vim for guide of coc.nvim's configuration.\n\n- `css.execArgv`: Extra arguments for node which start language server. default: `[]`\n- `css.customData`: default: `[]`\n- `css.completion.triggerPropertyValueCompletion`: By default, VS Code triggers property value completion after selecting a CSS property. Use this setting to disable this behavior. default: `true`\n- `css.completion.completePropertyWithSemicolon`: Insert semicolon at end of line when completing CSS properties. default: `true`\n- `css.validate`: Enables or disables all validations. default: `true`\n- `css.hover.documentation`: Show tag and attribute documentation in CSS hovers. default: `true`\n- `css.hover.references`: Show references to MDN in CSS hovers. default: `true`\n- `css.lint.compatibleVendorPrefixes`: When using a vendor-specific prefix make sure to also include all other vendor-specific properties. default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `css.lint.vendorPrefix`: When using a vendor-specific prefix, also include the standard property. default: `\"warning\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `css.lint.duplicateProperties`: Do not use duplicate style definitions. default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `css.lint.emptyRules`: Do not use empty rulesets. default: `\"warning\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `css.lint.importStatement`: Import statements do not load in parallel. default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `css.lint.boxModel`: default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `css.lint.universalSelector`: default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `css.lint.zeroUnits`: No unit for zero needed. default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `css.lint.fontFaceProperties`: default: `\"warning\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `css.lint.hexColorLength`: Hex colors must consist of three or six hex numbers. default: `\"error\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `css.lint.argumentsInColorFunction`: Invalid number of parameters. default: `\"error\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `css.lint.unknownProperties`: Unknown property. default: `\"warning\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `css.lint.validProperties`: A list of properties that are not validated against the `unknownProperties` rule. default: `[]`\n- `css.lint.ieHack`: IE hacks are only necessary when supporting IE7 and older. default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `css.lint.unknownVendorSpecificProperties`: Unknown vendor specific property. default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `css.lint.propertyIgnoredDueToDisplay`: default: `\"warning\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `css.lint.important`: default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `css.lint.float`: default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `css.lint.idSelector`: Selectors should not contain IDs because these rules are too tightly coupled with the HTML. default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `css.lint.unknownAtRules`: Unknown at-rule. default: `\"warning\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `css.trace.server`: Traces the communication between VS Code and the CSS language server. default: `\"off\"`\n  Valid options: [\"off\",\"messages\",\"verbose\"]\n- `css.format.enable`: Enable/disable default CSS formatter. default: `true`\n- `css.format.newlineBetweenSelectors`: default: `true`\n- `css.format.newlineBetweenRules`: default: `true`\n- `css.format.spaceAroundSelectorSeparator`: default: `false`\n- `css.format.braceStyle`: default: `\"collapse\"`\n  Valid options: [\"collapse\",\"expand\"]\n- `css.format.preserveNewLines`: default: `true`\n- `css.format.maxPreserveNewLines`: default: `null`\n- `scss.completion.triggerPropertyValueCompletion`: By default, VS Code triggers property value completion after selecting a CSS property. Use this setting to disable this behavior. default: `true`\n- `scss.completion.completePropertyWithSemicolon`: Insert semicolon at end of line when completing CSS properties. default: `true`\n- `scss.validate`: Enables or disables all validations. default: `true`\n- `scss.hover.documentation`: Show tag and attribute documentation in SCSS hovers. default: `true`\n- `scss.hover.references`: Show references to MDN in SCSS hovers. default: `true`\n- `scss.lint.compatibleVendorPrefixes`: When using a vendor-specific prefix make sure to also include all other vendor-specific properties. default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `scss.lint.vendorPrefix`: When using a vendor-specific prefix, also include the standard property. default: `\"warning\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `scss.lint.duplicateProperties`: Do not use duplicate style definitions. default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `scss.lint.emptyRules`: Do not use empty rulesets. default: `\"warning\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `scss.lint.importStatement`: Import statements do not load in parallel. default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `scss.lint.boxModel`: default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `scss.lint.universalSelector`: default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `scss.lint.zeroUnits`: No unit for zero needed. default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `scss.lint.fontFaceProperties`: default: `\"warning\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `scss.lint.hexColorLength`: Hex colors must consist of three or six hex numbers. default: `\"error\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `scss.lint.argumentsInColorFunction`: Invalid number of parameters. default: `\"error\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `scss.lint.unknownProperties`: Unknown property. default: `\"warning\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `scss.lint.validProperties`: A list of properties that are not validated against the `unknownProperties` rule. default: `[]`\n- `scss.lint.ieHack`: IE hacks are only necessary when supporting IE7 and older. default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `scss.lint.unknownVendorSpecificProperties`: Unknown vendor specific property. default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `scss.lint.propertyIgnoredDueToDisplay`: default: `\"warning\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `scss.lint.important`: default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `scss.lint.float`: default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `scss.lint.idSelector`: Selectors should not contain IDs because these rules are too tightly coupled with the HTML. default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `scss.lint.unknownAtRules`: Unknown at-rule. default: `\"warning\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `scss.format.enable`: Enable/disable default SCSS formatter. default: `true`\n- `scss.format.newlineBetweenSelectors`: default: `true`\n- `scss.format.newlineBetweenRules`: default: `true`\n- `scss.format.spaceAroundSelectorSeparator`: default: `false`\n- `scss.format.braceStyle`: default: `\"collapse\"`\n  Valid options: [\"collapse\",\"expand\"]\n- `scss.format.preserveNewLines`: default: `true`\n- `scss.format.maxPreserveNewLines`: default: `null`\n- `less.completion.triggerPropertyValueCompletion`: By default, VS Code triggers property value completion after selecting a CSS property. Use this setting to disable this behavior. default: `true`\n- `less.completion.completePropertyWithSemicolon`: Insert semicolon at end of line when completing CSS properties. default: `true`\n- `less.validate`: Enables or disables all validations. default: `true`\n- `less.hover.documentation`: Show tag and attribute documentation in LESS hovers. default: `true`\n- `less.hover.references`: Show references to MDN in LESS hovers. default: `true`\n- `less.lint.compatibleVendorPrefixes`: When using a vendor-specific prefix make sure to also include all other vendor-specific properties. default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `less.lint.vendorPrefix`: When using a vendor-specific prefix, also include the standard property. default: `\"warning\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `less.lint.duplicateProperties`: Do not use duplicate style definitions. default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `less.lint.emptyRules`: Do not use empty rulesets. default: `\"warning\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `less.lint.importStatement`: Import statements do not load in parallel. default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `less.lint.boxModel`: default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `less.lint.universalSelector`: default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `less.lint.zeroUnits`: No unit for zero needed. default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `less.lint.fontFaceProperties`: default: `\"warning\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `less.lint.hexColorLength`: Hex colors must consist of three or six hex numbers. default: `\"error\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `less.lint.argumentsInColorFunction`: Invalid number of parameters. default: `\"error\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `less.lint.unknownProperties`: Unknown property. default: `\"warning\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `less.lint.validProperties`: A list of properties that are not validated against the `unknownProperties` rule. default: `[]`\n- `less.lint.ieHack`: IE hacks are only necessary when supporting IE7 and older. default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `less.lint.unknownVendorSpecificProperties`: Unknown vendor specific property. default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `less.lint.propertyIgnoredDueToDisplay`: default: `\"warning\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `less.lint.important`: default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `less.lint.float`: default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `less.lint.idSelector`: Selectors should not contain IDs because these rules are too tightly coupled with the HTML. default: `\"ignore\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `less.lint.unknownAtRules`: Unknown at-rule. default: `\"warning\"`\n  Valid options: [\"ignore\",\"warning\",\"error\"]\n- `less.format.enable`: Enable/disable default LESS formatter. default: `true`\n- `less.format.newlineBetweenSelectors`: default: `true`\n- `less.format.newlineBetweenRules`: default: `true`\n- `less.format.spaceAroundSelectorSeparator`: default: `false`\n- `less.format.braceStyle`: default: `\"collapse\"`\n  Valid options: [\"collapse\",\"expand\"]\n- `less.format.preserveNewLines`: default: `true`\n- `less.format.maxPreserveNewLines`: default: `null`\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneoclide%2Fcoc-css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneoclide%2Fcoc-css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneoclide%2Fcoc-css/lists"}