diff options
author | TotalKrill | 2022-12-09 04:09:23 +0000 |
---|---|---|
committer | GitHub | 2022-12-09 04:09:23 +0000 |
commit | 16e13b9789359282cb6c2681262f46fb1b70134b (patch) | |
tree | 9332f833c85fb66d0109ce95ef683655a44516c2 /helix-core | |
parent | 2ea20a23e26a771e095972bdda673d491b4aacc5 (diff) |
allow specifying environment for language servers in language.toml (#4004)
Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com>
Co-authored-by: Stephen Wakely <fungus.humungus@gmail.com>
Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
Diffstat (limited to 'helix-core')
-rw-r--r-- | helix-core/src/syntax.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs index 8dc34a3e..41ab23e1 100644 --- a/helix-core/src/syntax.rs +++ b/helix-core/src/syntax.rs @@ -207,6 +207,8 @@ pub struct LanguageServerConfiguration { #[serde(default)] #[serde(skip_serializing_if = "Vec::is_empty")] pub args: Vec<String>, + #[serde(default, skip_serializing_if = "HashMap::is_empty")] + pub environment: HashMap<String, String>, #[serde(default = "default_timeout")] pub timeout: u64, pub language_id: Option<String>, |