summaryrefslogtreecommitdiff
path: root/helix-view
diff options
context:
space:
mode:
authorGokul Soumya2022-03-28 01:11:52 +0000
committerGitHub2022-03-28 01:11:52 +0000
commit7b3a3d562cb46a1d70950983d460e388ae46cf79 (patch)
treec665b40feed4cc5986e0ec75be7538bac3451907 /helix-view
parentbee05dd32a685b58015514492525673b1b568b0d (diff)
Move top level lsp config to editor.lsp (#1868)
* Move top level lsp config to editor.lsp This is mainly done to accomodate the new lsp.signature-help config option that will be introduced in https://github.com/helix-editor/helix/pull/1755 which will have to be accessed by commands. The top level config struct is split and moved to different places, making the relocation necessary * Revert rebase slipup
Diffstat (limited to 'helix-view')
-rw-r--r--helix-view/src/editor.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index 8220deb7..9a2b4297 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -143,6 +143,13 @@ pub struct Config {
/// Search configuration.
#[serde(default)]
pub search: SearchConfig,
+ pub lsp: LspConfig,
+}
+
+#[derive(Debug, Default, Clone, PartialEq, Serialize, Deserialize)]
+#[serde(rename_all = "kebab-case", deny_unknown_fields)]
+pub struct LspConfig {
+ pub display_messages: bool,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
@@ -253,6 +260,7 @@ impl Default for Config {
cursor_shape: CursorShapeConfig::default(),
true_color: false,
search: SearchConfig::default(),
+ lsp: LspConfig::default(),
}
}
}