mirror of https://github.com/helix-editor/helix
deploy: 16e13b9789
parent
9097272649
commit
47c38809f2
|
@ -167,7 +167,7 @@ injection-regex = "^mylang$"
|
|||
file-types = ["mylang", "myl"]
|
||||
comment-token = "#"
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
language-server = { command = "mylang-lsp", args = ["--stdio"] }
|
||||
language-server = { command = "mylang-lsp", args = ["--stdio"], environment = { "ENV1" = "value1", "ENV2" = "value2" } }
|
||||
formatter = { command = "mylang-formatter" , args = ["--stdin"] }
|
||||
</code></pre>
|
||||
<p>These configuration keys are available:</p>
|
||||
|
@ -218,6 +218,7 @@ system, so this rule would match against <code>.git\config</code> files on Windo
|
|||
<tr><td><code>args</code></td><td>A list of arguments to pass to the language server binary</td></tr>
|
||||
<tr><td><code>timeout</code></td><td>The maximum time a request to the language server may take, in seconds. Defaults to <code>20</code></td></tr>
|
||||
<tr><td><code>language-id</code></td><td>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</td></tr>
|
||||
<tr><td><code>environment</code></td><td>Any environment variables that will be used when starting the language server <code>{ "KEY1" = "Value1", "KEY2" = "Value2" }</code></td></tr>
|
||||
</tbody></table>
|
||||
</div>
|
||||
<p>The top-level <code>config</code> field is used to configure the LSP initialization options. A <code>format</code>
|
||||
|
|
|
@ -1662,7 +1662,7 @@ injection-regex = "^mylang$"
|
|||
file-types = ["mylang", "myl"]
|
||||
comment-token = "#"
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
language-server = { command = "mylang-lsp", args = ["--stdio"] }
|
||||
language-server = { command = "mylang-lsp", args = ["--stdio"], environment = { "ENV1" = "value1", "ENV2" = "value2" } }
|
||||
formatter = { command = "mylang-formatter" , args = ["--stdin"] }
|
||||
</code></pre>
|
||||
<p>These configuration keys are available:</p>
|
||||
|
@ -1713,6 +1713,7 @@ system, so this rule would match against <code>.git\config</code> files on Windo
|
|||
<tr><td><code>args</code></td><td>A list of arguments to pass to the language server binary</td></tr>
|
||||
<tr><td><code>timeout</code></td><td>The maximum time a request to the language server may take, in seconds. Defaults to <code>20</code></td></tr>
|
||||
<tr><td><code>language-id</code></td><td>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</td></tr>
|
||||
<tr><td><code>environment</code></td><td>Any environment variables that will be used when starting the language server <code>{ "KEY1" = "Value1", "KEY2" = "Value2" }</code></td></tr>
|
||||
</tbody></table>
|
||||
</div>
|
||||
<p>The top-level <code>config</code> field is used to configure the LSP initialization options. A <code>format</code>
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue