summaryrefslogtreecommitdiff
path: root/support/texlab/src/options.rs
diff options
context:
space:
mode:
Diffstat (limited to 'support/texlab/src/options.rs')
-rw-r--r--support/texlab/src/options.rs28
1 files changed, 28 insertions, 0 deletions
diff --git a/support/texlab/src/options.rs b/support/texlab/src/options.rs
index 09eea1110f..2626143e18 100644
--- a/support/texlab/src/options.rs
+++ b/support/texlab/src/options.rs
@@ -12,6 +12,9 @@ pub struct Options {
#[serde(default)]
pub bibtex_formatter: BibtexFormatter,
+ #[serde(default)]
+ pub latex_formatter: LatexFormatter,
+
pub formatter_line_length: Option<i32>,
pub diagnostics_delay: Option<u64>,
@@ -22,6 +25,9 @@ pub struct Options {
#[serde(default)]
pub chktex: ChktexOptions,
+ #[serde(default)]
+ pub latexindent: LatexindentOptions,
+
pub forward_search: Option<ForwardSearchOptions>,
}
@@ -38,6 +44,28 @@ impl Default for BibtexFormatter {
}
}
+#[derive(Debug, PartialEq, Eq, Clone, Copy, Serialize, Deserialize)]
+#[serde(rename_all = "kebab-case")]
+pub enum LatexFormatter {
+ Texlab,
+ Latexindent,
+}
+
+impl Default for LatexFormatter {
+ fn default() -> Self {
+ Self::Latexindent
+ }
+}
+
+#[derive(Debug, PartialEq, Eq, Clone, Default, Serialize, Deserialize)]
+#[serde(rename_all = "camelCase")]
+pub struct LatexindentOptions {
+ pub local: Option<String>,
+
+ #[serde(default)]
+ pub modify_line_breaks: bool,
+}
+
#[derive(Debug, PartialEq, Eq, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct BuildOptions {