Skip to content

Commit

Permalink
docs(dockerls): document ignoreMultilineInstructions setting (#3142)
Browse files Browse the repository at this point in the history
Document how the ignoreMultilineInstructions settings for dockerls can
be configured.

That the settings key must be "docker" instead of "dockerls" makes it
non-intuitive and harder to figure out.

Sources:
- https://github.com/rcjsuen/dockerfile-language-server?tab=readme-ov-file#language-server-settings
- https://github.com/rcjsuen/dockerfile-language-server/blob/9e3f8580f711e54a1de0351631baeac49665d6f3/src/server.ts#L330-L344
  • Loading branch information
fho committed May 7, 2024
1 parent 9a5a3eb commit c3957f8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lua/lspconfig/server_configurations/dockerls.lua
Expand Up @@ -14,6 +14,21 @@ https://github.com/rcjsuen/dockerfile-language-server-nodejs
`docker-langserver` can be installed via `npm`:
```sh
npm install -g dockerfile-language-server-nodejs
```
Additional configuration can be applied in the following way:
```lua
require("lspconfig").dockerls.setup {
settings = {
docker = {
languageserver = {
formatter = {
ignoreMultilineInstructions = true,
},
},
}
}
}
```
]],
default_config = {
Expand Down

0 comments on commit c3957f8

Please sign in to comment.