Skip to content

Commit 5d3528e

Browse files
Merge pull request #968 from 86xsk/ls_text_language_id
feat(ls): use PlainEnglish parser for language id "text"
2 parents 2805d48 + d49cba2 commit 5d3528e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

harper-ls/src/backend.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ impl Backend {
266266
Some(Box::new(GitCommitParser::new_markdown(markdown_options)))
267267
}
268268
"html" => Some(Box::new(HtmlParser::default())),
269-
"mail" | "plaintext" => Some(Box::new(PlainEnglish)),
269+
"mail" | "plaintext" | "text" => Some(Box::new(PlainEnglish)),
270270
"typst" => Some(Box::new(Typst)),
271271
_ => None,
272272
};

packages/web/src/routes/docs/integrations/language-server/+page.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ These configs are under the `markdown` key:
244244
| Markdown | `markdown` | |
245245
| Nix | `nix` ||
246246
| PHP | `php` ||
247-
| Plain Text | `plaintext` | |
247+
| Plain Text | `plaintext`/`text` | |
248248
| Python | `python` ||
249249
| Ruby | `ruby` ||
250250
| Rust | `rust` ||

0 commit comments

Comments
 (0)