use serde::{Deserialize, Serialize}; use std::num::NonZeroU32; /// The settings for a particular language. #[derive(Debug, Serialize, Deserialize)] pub struct LanguageSettings { /// How many columns a tab should occupy. pub tab_size: NonZeroU32, } /// The settings for a particular language server. #[derive(Default, Debug, Serialize, Deserialize)] pub struct LspSettings { /// The settings for the language server binary. pub binary: Option, /// The initialization options to pass to the language server. pub initialization_options: Option, /// The settings to pass to language server. pub settings: Option, } /// The settings for a language server binary. #[derive(Debug, Serialize, Deserialize)] pub struct BinarySettings { /// The path to the binary. pub path: Option, /// The arguments to pass to the binary. pub arguments: Option>, }