Skip to content

Commit

Permalink
docs(dockerls): document ignoreMultilineInstructions setting
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 5244605
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lua/lspconfig/server_configurations/dockerls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ return {
filetypes = { 'dockerfile' },
root_dir = util.root_pattern 'Dockerfile',
single_file_support = true,
settings = {
docker = {
languageserver = {
formatter = {
ignoreMultilineInstructions = true,
},
},
}
},
},
docs = {
description = [[
Expand Down

0 comments on commit 5244605

Please sign in to comment.