multi-fixes

This commit is contained in:
2026-02-22 15:24:48 +00:00
parent 982c2c8b44
commit e2dc4a1f40
11 changed files with 498 additions and 48 deletions
+5
View File
@@ -85,6 +85,9 @@ var DefaultServerConfigs = map[protocol.Language]ServerConfig{
protocol.LangCpp: {
Command: []string{"clangd"},
},
protocol.LangRust: {
Command: []string{"rust-analyzer"},
},
}
// AllowedLSPBinaries is a whitelist of allowed LSP server binary names.
@@ -602,6 +605,8 @@ func languageToLSPID(lang protocol.Language) string {
return "c"
case protocol.LangCpp:
return "cpp"
case protocol.LangRust:
return "rust"
default:
return string(lang)
}