diff options
Diffstat (limited to 'support/texlab/src/features/formatting.rs')
-rw-r--r-- | support/texlab/src/features/formatting.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/support/texlab/src/features/formatting.rs b/support/texlab/src/features/formatting.rs index 09737777fd..5d7d1c0c1f 100644 --- a/support/texlab/src/features/formatting.rs +++ b/support/texlab/src/features/formatting.rs @@ -19,10 +19,12 @@ pub fn format_source_code( let document = workspace.lookup_uri(db, uri)?; match document.language(db) { Language::Tex => match workspace.options(db).latex_formatter { + LatexFormatter::None => None, LatexFormatter::Texlab => None, LatexFormatter::Latexindent => format_with_latexindent(db, document), }, Language::Bib => match workspace.options(db).bibtex_formatter { + BibtexFormatter::None => None, BibtexFormatter::Texlab => format_bibtex_internal(db, document, options), BibtexFormatter::Latexindent => format_with_latexindent(db, document), }, |