summaryrefslogtreecommitdiff
path: root/helix-loader/src/config.rs
diff options
context:
space:
mode:
authorMichael Davis2022-04-23 08:10:34 +0000
committerGitHub2022-04-23 08:10:34 +0000
commit2c7f770aa9b094afca4454c8e85c8a963112ec32 (patch)
treeb880b3afde3d6ce2b815cc2218424dd69be43bc7 /helix-loader/src/config.rs
parent19d042dde6ac7aad5b597c791c1f142f5c7f7198 (diff)
Only merge top-level array when merging `languages.toml` (#2215)
* Revert "Revert "override nested arrays when merging TOML (#2145)"" This reverts commit 35d2693630a4ec29a654704bc4be47badb8d6070. * flip top-level table merging flag
Diffstat (limited to 'helix-loader/src/config.rs')
-rw-r--r--helix-loader/src/config.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-loader/src/config.rs b/helix-loader/src/config.rs
index 5dc2d6b6..a8c84361 100644
--- a/helix-loader/src/config.rs
+++ b/helix-loader/src/config.rs
@@ -19,7 +19,7 @@ pub fn user_lang_config() -> Result<toml::Value, toml::de::Error> {
.into_iter()
.chain([default_lang_config()].into_iter())
.fold(toml::Value::Table(toml::value::Table::default()), |a, b| {
- crate::merge_toml_values(b, a)
+ crate::merge_toml_values(b, a, true)
});
Ok(config)