diff options
| author | github-actions <github-actions@github.com> | 2023-03-05 12:12:22 +0000 |
|---|---|---|
| committer | github-actions <github-actions@github.com> | 2023-03-05 12:12:22 +0000 |
| commit | 56f4c8cdcdffca8521d3415cba7894d2f9f11dfe (patch) | |
| tree | caad1d3de3ec6ad9a243cab2a485325b2b7691f5 | |
| parent | feat: add azure pipelines lsp (#2493) (diff) | |
| download | nvim-lspconfig-56f4c8cdcdffca8521d3415cba7894d2f9f11dfe.tar nvim-lspconfig-56f4c8cdcdffca8521d3415cba7894d2f9f11dfe.tar.gz nvim-lspconfig-56f4c8cdcdffca8521d3415cba7894d2f9f11dfe.tar.bz2 nvim-lspconfig-56f4c8cdcdffca8521d3415cba7894d2f9f11dfe.tar.lz nvim-lspconfig-56f4c8cdcdffca8521d3415cba7894d2f9f11dfe.tar.xz nvim-lspconfig-56f4c8cdcdffca8521d3415cba7894d2f9f11dfe.tar.zst nvim-lspconfig-56f4c8cdcdffca8521d3415cba7894d2f9f11dfe.zip | |
docs: update server_configurations.md
skip-checks: true
| -rw-r--r-- | doc/server_configurations.md | 73 | ||||
| -rw-r--r-- | doc/server_configurations.txt | 73 |
2 files changed, 146 insertions, 0 deletions
diff --git a/doc/server_configurations.md b/doc/server_configurations.md index 40cbb12f..4b9b65a8 100644 --- a/doc/server_configurations.md +++ b/doc/server_configurations.md @@ -15,6 +15,7 @@ autogenerated from the Lua files. You can view this file in Nvim by running - [asm_lsp](#asm_lsp) - [astro](#astro) - [awk_ls](#awk_ls) +- [azure_pipelines_ls](#azure_pipelines_ls) - [bashls](#bashls) - [beancount](#beancount) - [bicep](#bicep) @@ -690,6 +691,78 @@ require'lspconfig'.awk_ls.setup{} ``` +## azure_pipelines_ls + +https://github.com/microsoft/azure-pipelines-language-server + +An Azure Pipelines language server + +**By default, `azure-pipelines-ls` doesn't have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about your path. +You have to install the language server manually. + +`azure-pipelines-ls` can be installed via `npm`: + +```sh +npm install -g azure-pipelines-language-server +``` + +Once installed, point `cmd` to `server.js` inside the `out` directory: + +```lua +cmd = {'node', '<path_to_azure_pipelines_install>/out/server.js', '--stdio'} +``` + +By default `azure-pipelines-ls` will only work in files named `azure-pipelines.yml`, this can be changed by providing additional settings like so: +```lua +require("lspconfig").azure_pipelines_ls.setup { + ... -- other configuration for setup {} + settings = { + yaml = { + schemas = { + ["https://raw.githubusercontent.com/microsoft/azure-pipelines-vscode/master/service-schema.json"] = { + "/azure-pipeline*.y*l", + "/*.azure*", + "Azure-Pipelines/**/*.y*l", + "Pipelines/*.y*l", + }, + }, + }, + }, +} +``` +The Azure Pipelines LSP is a fork of `yaml-language-server` and as such the same settings can be passed to it as `yaml-language-server`. + + + +**Snippet to enable the language server:** +```lua +require'lspconfig'.azure_pipelines_ls.setup{} +``` + + +**Default values:** + - `cmd` : + ```lua + {} + ``` + - `filetypes` : + ```lua + { "yaml" } + ``` + - `root_dir` : + ```lua + see source file + ``` + - `settings` : + ```lua + {} + ``` + - `single_file_support` : + ```lua + true + ``` + + ## bashls https://github.com/mads-hartmann/bash-language-server diff --git a/doc/server_configurations.txt b/doc/server_configurations.txt index 40cbb12f..4b9b65a8 100644 --- a/doc/server_configurations.txt +++ b/doc/server_configurations.txt @@ -15,6 +15,7 @@ autogenerated from the Lua files. You can view this file in Nvim by running - [asm_lsp](#asm_lsp) - [astro](#astro) - [awk_ls](#awk_ls) +- [azure_pipelines_ls](#azure_pipelines_ls) - [bashls](#bashls) - [beancount](#beancount) - [bicep](#bicep) @@ -690,6 +691,78 @@ require'lspconfig'.awk_ls.setup{} ``` +## azure_pipelines_ls + +https://github.com/microsoft/azure-pipelines-language-server + +An Azure Pipelines language server + +**By default, `azure-pipelines-ls` doesn't have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about your path. +You have to install the language server manually. + +`azure-pipelines-ls` can be installed via `npm`: + +```sh +npm install -g azure-pipelines-language-server +``` + +Once installed, point `cmd` to `server.js` inside the `out` directory: + +```lua +cmd = {'node', '<path_to_azure_pipelines_install>/out/server.js', '--stdio'} +``` + +By default `azure-pipelines-ls` will only work in files named `azure-pipelines.yml`, this can be changed by providing additional settings like so: +```lua +require("lspconfig").azure_pipelines_ls.setup { + ... -- other configuration for setup {} + settings = { + yaml = { + schemas = { + ["https://raw.githubusercontent.com/microsoft/azure-pipelines-vscode/master/service-schema.json"] = { + "/azure-pipeline*.y*l", + "/*.azure*", + "Azure-Pipelines/**/*.y*l", + "Pipelines/*.y*l", + }, + }, + }, + }, +} +``` +The Azure Pipelines LSP is a fork of `yaml-language-server` and as such the same settings can be passed to it as `yaml-language-server`. + + + +**Snippet to enable the language server:** +```lua +require'lspconfig'.azure_pipelines_ls.setup{} +``` + + +**Default values:** + - `cmd` : + ```lua + {} + ``` + - `filetypes` : + ```lua + { "yaml" } + ``` + - `root_dir` : + ```lua + see source file + ``` + - `settings` : + ```lua + {} + ``` + - `single_file_support` : + ```lua + true + ``` + + ## bashls https://github.com/mads-hartmann/bash-language-server |
