diff options
Diffstat (limited to 'support/texlab/src/options.rs')
-rw-r--r-- | support/texlab/src/options.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/support/texlab/src/options.rs b/support/texlab/src/options.rs index 2626143e18..20f92a90f4 100644 --- a/support/texlab/src/options.rs +++ b/support/texlab/src/options.rs @@ -75,6 +75,12 @@ pub struct BuildOptions { #[serde(default)] pub is_continuous: bool, + + #[serde(default)] + pub on_save: bool, + + #[serde(default)] + pub forward_search_after: bool, } impl BuildOptions { @@ -99,6 +105,17 @@ impl BuildOptions { #[derive(Debug, PartialEq, Eq, Clone, Default, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] +pub struct ViewerOptions { + #[serde(default)] + pub enabled: bool, + + pub executable: Option<String>, + + pub args: Option<String>, +} + +#[derive(Debug, PartialEq, Eq, Clone, Default, Serialize, Deserialize)] +#[serde(rename_all = "camelCase")] pub struct ChktexOptions { #[serde(default)] pub on_open_and_save: bool, |