diff options
| author | Github Actions <actions@github> | 2021-04-18 16:33:49 +0000 |
|---|---|---|
| committer | Github Actions <actions@github> | 2021-04-18 16:33:49 +0000 |
| commit | 5f7318bc8c8786aa541aeb790dcfd9182cea0ea9 (patch) | |
| tree | a9318b7f1dd73b4ecdbb8f60a2e670b47fb7d0f9 | |
| parent | Merge pull request #851 from bmatcuk/master (diff) | |
| download | nvim-lspconfig-5f7318bc8c8786aa541aeb790dcfd9182cea0ea9.tar nvim-lspconfig-5f7318bc8c8786aa541aeb790dcfd9182cea0ea9.tar.gz nvim-lspconfig-5f7318bc8c8786aa541aeb790dcfd9182cea0ea9.tar.bz2 nvim-lspconfig-5f7318bc8c8786aa541aeb790dcfd9182cea0ea9.tar.lz nvim-lspconfig-5f7318bc8c8786aa541aeb790dcfd9182cea0ea9.tar.xz nvim-lspconfig-5f7318bc8c8786aa541aeb790dcfd9182cea0ea9.tar.zst nvim-lspconfig-5f7318bc8c8786aa541aeb790dcfd9182cea0ea9.zip | |
[docgen] Update CONFIG.md
skip-checks: true
| -rw-r--r-- | CONFIG.md | 76 |
1 files changed, 76 insertions, 0 deletions
@@ -4840,6 +4840,82 @@ https://github.com/bmatcuk/stylelint-lsp npm i -g stylelint-lsp ``` +Can be configured by passing a `settings.stylelintplus` object to `stylelint_lsp.setup`: + +```lua +require'lspconfig'.stylelint_lsp.setup{ + settings = { + stylelintplus = { + -- see available options in stylelint-lsp documentation + } + } +} +``` + +This server accepts configuration via the `settings` key. +<details><summary>Available settings:</summary> + +- **`stylelintplus.autoFixOnFormat`**: `boolean` + + Auto\-fix on format request\. + +- **`stylelintplus.autoFixOnSave`**: `boolean` + + Auto\-fix and format on save\. + +- **`stylelintplus.config`**: `object` + + Default: `vim.NIL` + + Stylelint config\. If config and configFile are unset\, stylelint will automatically look for a config file\. + +- **`stylelintplus.configFile`**: `string` + + Default: `vim.NIL` + + Stylelint config file\. If config and configFile are unset\, stylelint will automatically look for a config file\. + +- **`stylelintplus.configOverrides`**: `object` + + Default: `vim.NIL` + + Stylelint config overrides\. These will be applied on top of the config\, configFile\, or auto\-discovered config file loaded by stylelint\. + +- **`stylelintplus.cssInJs`**: `boolean` + + Run stylelint on javascript\/typescript files\. + +- **`stylelintplus.enable`**: `boolean` + + Default: `true` + + If false\, stylelint will not validate the file\. + +- **`stylelintplus.filetypes`**: `array` + + Default: `{ "css", "less", "postcss", "scss", "sugarss", "vue", "wxss" }` + + Array items: `{type = "string"}` + + Filetypes that coc\-stylelintplus will lint\. + +- **`stylelintplus.trace.server`**: `enum { "off", "messages", "verbose" }` + + Default: `"off"` + + Capture trace messages from the server\. + +- **`stylelintplus.validateOnSave`**: `boolean` + + Validate after saving\. Automatically enabled if autoFixOnSave is enabled\. + +- **`stylelintplus.validateOnType`**: `boolean` + + Default: `true` + + Validate after making changes\. + +</details> ```lua require'lspconfig'.stylelint_lsp.setup{} |
