feat: add Typst syntax and Tinymist defaults

This commit is contained in:
2026-10-22 09:30:22 +02:00
parent ea7c240eb6
commit 03931496bf
14 changed files with 104 additions and 4 deletions
+4 -1
View File
@@ -1280,6 +1280,7 @@ fn lsp_configuration_is_disabled_unless_explicitly_enabled() {
r#"Vamp.configure do |config|
config.lsp["rust"] = false
config.lsp["python"] = false
config.lsp["typst"] = false
config.lsp["not-a-preset"] = false
end"#,
] {
@@ -1299,13 +1300,15 @@ fn lsp_presets_custom_languages_and_overrides_reach_native_configuration() {
config.lsp["rust"] = true
config.lsp["python"] = true
config.lsp["ruby"] = true
config.lsp["typst"] = true
end"#,
);
let config = load_config(&path).unwrap();
assert_eq!(config.lsp.len(), 4);
assert_eq!(config.lsp.len(), 5);
for (language, command, extension) in [
("rust", &["rust-analyzer"][..], "rs"),
("ruby", &["solargraph", "stdio"][..], "rb"),
("typst", &["tinymist", "lsp"][..], "typ"),
] {
let server = config
.lsp