diff options
| author | Fabian Holler <mail@fholler.de> | 2024-05-07 13:10:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-07 19:10:43 +0800 |
| commit | c3957f8b698601a20678a99b7c72c78873bf3dc0 (patch) | |
| tree | 8b9109a0fd6acfa84de91073f78bdbdff6ea10a1 /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-c3957f8b698601a20678a99b7c72c78873bf3dc0.tar nvim-lspconfig-c3957f8b698601a20678a99b7c72c78873bf3dc0.tar.gz nvim-lspconfig-c3957f8b698601a20678a99b7c72c78873bf3dc0.tar.bz2 nvim-lspconfig-c3957f8b698601a20678a99b7c72c78873bf3dc0.tar.lz nvim-lspconfig-c3957f8b698601a20678a99b7c72c78873bf3dc0.tar.xz nvim-lspconfig-c3957f8b698601a20678a99b7c72c78873bf3dc0.tar.zst nvim-lspconfig-c3957f8b698601a20678a99b7c72c78873bf3dc0.zip | |
docs(dockerls): document ignoreMultilineInstructions setting (#3142)
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
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/dockerls.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/dockerls.lua b/lua/lspconfig/server_configurations/dockerls.lua index 97376ea7..dde050ba 100644 --- a/lua/lspconfig/server_configurations/dockerls.lua +++ b/lua/lspconfig/server_configurations/dockerls.lua @@ -15,6 +15,21 @@ https://github.com/rcjsuen/dockerfile-language-server-nodejs ```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 = { root_dir = [[root_pattern("Dockerfile")]], |
