From 7b3a3d562cb46a1d70950983d460e388ae46cf79 Mon Sep 17 00:00:00 2001 From: Gokul Soumya Date: Mon, 28 Mar 2022 06:41:52 +0530 Subject: 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--- helix-view/src/editor.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'helix-view/src') 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(), } } } -- cgit v1.2.3-70-g09d2