Skip to content

Commit c3b6662

Browse files
committed
Add clangd server to LSP registry
1 parent 9d73725 commit c3b6662

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/cm/lsp/serverRegistry.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,28 @@ function registerBuiltinServers() {
314314
},
315315
enabled: false,
316316
},
317+
{
318+
id: "clangd",
319+
label: "C / C++ (clangd)",
320+
languages: ["c", "cpp"],
321+
transport: {
322+
kind: "websocket",
323+
url: "ws://127.0.0.1:2094",
324+
},
325+
launcher: {
326+
bridge: {
327+
kind: "axs",
328+
port: 2094,
329+
command: "clangd",
330+
},
331+
checkCommand: "which clangd",
332+
install: {
333+
command: "apk add --no-cache clang-extra-tools",
334+
prompt: "clangd is not installed. Install it now?",
335+
},
336+
},
337+
enabled: false,
338+
},
317339
{
318340
id: "html",
319341
label: "HTML",

0 commit comments

Comments
 (0)