feat: add Typst syntax and Tinymist defaults
This commit is contained in:
+4
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user