diff options
| author | Github Actions <actions@github> | 2019-11-20 02:47:28 +0000 |
|---|---|---|
| committer | Github Actions <actions@github> | 2019-11-20 02:47:28 +0000 |
| commit | a549ba1dc6d73681b0fa71f6153bcd63196d4fb6 (patch) | |
| tree | cabc83a2f02c3cdbefe87815afb8fecaa47b3656 | |
| parent | Add css lsp (#36) (diff) | |
| download | nvim-lspconfig-a549ba1dc6d73681b0fa71f6153bcd63196d4fb6.tar nvim-lspconfig-a549ba1dc6d73681b0fa71f6153bcd63196d4fb6.tar.gz nvim-lspconfig-a549ba1dc6d73681b0fa71f6153bcd63196d4fb6.tar.bz2 nvim-lspconfig-a549ba1dc6d73681b0fa71f6153bcd63196d4fb6.tar.lz nvim-lspconfig-a549ba1dc6d73681b0fa71f6153bcd63196d4fb6.tar.xz nvim-lspconfig-a549ba1dc6d73681b0fa71f6153bcd63196d4fb6.tar.zst nvim-lspconfig-a549ba1dc6d73681b0fa71f6153bcd63196d4fb6.zip | |
[docgen] Update README.md
skip-checks: true
| -rw-r--r-- | README.md | 38 |
1 files changed, 36 insertions, 2 deletions
@@ -35,6 +35,7 @@ Implemented language servers: - [bashls](#bashls) - [ccls](#ccls) - [clangd](#clangd) +- [cssls](#cssls) - [elmls](#elmls) - [flow](#flow) - [gopls](#gopls) @@ -246,6 +247,41 @@ nvim_lsp#setup("clangd", {config}) settings = {} ``` +## cssls + +https://github.com/vscode-langservers/vscode-css-languageserver-bin + +`css-languageserver` can be installed via `:LspInstall cssls` or by yourself with `npm`: +```sh +npm install -g vscode-css-languageserver-bin +``` + +Can be installed in neovim with `:LspInstall cssls` + +```lua +nvim_lsp.cssls.setup({config}) +nvim_lsp#setup("cssls", {config}) + + Default Values: + capabilities = default capabilities, with offsetEncoding utf-8 + cmd = { "css-languageserver", "--stdio" } + filetypes = { "css", "scss", "less" } + log_level = 2 + on_init = function to handle changing offsetEncoding + root_dir = root_pattern("package.json") + settings = { + css = { + validate = true + }, + less = { + validate = true + }, + scss = { + validate = true + } + } +``` + ## elmls https://github.com/elm-tooling/elm-language-server#installation @@ -596,8 +632,6 @@ This server accepts configuration via the `settings` key. - **`pyls.plugins.pylint.enabled`**: `boolean` - Default: `true` - Enable or disable the plugin. - **`pyls.plugins.rope_completion.enabled`**: `boolean` |
