Skip to content

Commit

Permalink
docs: update server_configurations.md
Browse files Browse the repository at this point in the history
skip-checks: true
  • Loading branch information
github-actions committed Apr 25, 2023
1 parent ae6deda commit 94b9b97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
11 changes: 1 addition & 10 deletions doc/server_configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -832,21 +832,12 @@ 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 {
Expand Down Expand Up @@ -878,7 +869,7 @@ require'lspconfig'.azure_pipelines_ls.setup{}
**Default values:**
- `cmd` :
```lua
{}
{ "azure-pipelines-language-server", "--stdio" }
```
- `filetypes` :
```lua
Expand Down
11 changes: 1 addition & 10 deletions doc/server_configurations.txt
Original file line number Diff line number Diff line change
Expand Up @@ -832,21 +832,12 @@ 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 {
Expand Down Expand Up @@ -878,7 +869,7 @@ require'lspconfig'.azure_pipelines_ls.setup{}
**Default values:**
- `cmd` :
```lua
{}
{ "azure-pipelines-language-server", "--stdio" }
```
- `filetypes` :
```lua
Expand Down

0 comments on commit 94b9b97

Please sign in to comment.