@@ -39,7 +39,7 @@ injection-regex = "^mylang$"
3939file-types = ["mylang", "myl"]
4040comment-token = "#"
4141indent = { tab-width = 2, unit = " " }
42−language-server = { command = "mylang-lsp", args = ["--stdio"] }
42+language-server = { command = "mylang-lsp", args = ["--stdio"], environment = { "ENV1" = "value1", "ENV2" = "value2" } }
4343formatter = { command = "mylang-formatter" , args = ["--stdin"] }
4444```
4545
@@ -99,6 +99,7 @@ The `language-server` field takes the following keys:
9999| `args` | A list of arguments to pass to the language server binary |
100100| `timeout` | The maximum time a request to the language server may take, in seconds. Defaults to `20` |
101101| `language-id` | The language name to pass to the language server. Some language servers support multiple languages and use this field to determine which one is being served in a buffer |
102+| `environment` | Any environment variables that will be used when starting the language server `{ "KEY1" = "Value1", "KEY2" = "Value2" }` |
102103
103104The top-level `config` field is used to configure the LSP initialization options. A `format`
104105sub-table within `config` can be used to pass extra formatting options to