diff options
| author | Bob Matcuk <bmatcuk@gmail.com> | 2021-04-18 09:27:44 -0400 |
|---|---|---|
| committer | Bob Matcuk <bmatcuk@gmail.com> | 2021-04-18 09:27:44 -0400 |
| commit | 3cee3c704631fc094cdb1c4fbee4f80545dc6764 (patch) | |
| tree | 2eb6b3df596e22da629710a31fe0c691f9c6903b /lua | |
| parent | [docgen] Update CONFIG.md (diff) | |
| download | nvim-lspconfig-3cee3c704631fc094cdb1c4fbee4f80545dc6764.tar nvim-lspconfig-3cee3c704631fc094cdb1c4fbee4f80545dc6764.tar.gz nvim-lspconfig-3cee3c704631fc094cdb1c4fbee4f80545dc6764.tar.bz2 nvim-lspconfig-3cee3c704631fc094cdb1c4fbee4f80545dc6764.tar.lz nvim-lspconfig-3cee3c704631fc094cdb1c4fbee4f80545dc6764.tar.xz nvim-lspconfig-3cee3c704631fc094cdb1c4fbee4f80545dc6764.tar.zst nvim-lspconfig-3cee3c704631fc094cdb1c4fbee4f80545dc6764.zip | |
update stylelint_lsp documentation
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/stylelint_lsp.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lua/lspconfig/stylelint_lsp.lua b/lua/lspconfig/stylelint_lsp.lua index 972389a8..9028864c 100644 --- a/lua/lspconfig/stylelint_lsp.lua +++ b/lua/lspconfig/stylelint_lsp.lua @@ -20,6 +20,7 @@ configs.stylelint_lsp = { settings = {}; }, docs = { + package_json = "https://raw.githubusercontent.com/bmatcuk/coc-stylelintplus/master/package.json"; description = [[ https://github.com/bmatcuk/stylelint-lsp @@ -28,6 +29,18 @@ https://github.com/bmatcuk/stylelint-lsp ```sh 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 + } + } +} +``` ]]; default_config = { root_dir = [[ root_pattern('.stylelintrc', 'package.json') ]]; |
