Skip to content

Commit b463c92

Browse files
authored
feat: add astral ty lsp server
1 parent 3a97b9e commit b463c92

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/cm/lsp/servers/python.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@ import { defineBundle, defineServer, installers } from "../providerUtils";
22
import type { LspServerBundle, LspServerManifest } from "../types";
33

44
export const pythonServers: LspServerManifest[] = [
5+
defineServer({
6+
id: "ty",
7+
label: "Python (ty)",
8+
languages: ["python"],
9+
command: "ty",
10+
args: ["server"],
11+
checkCommand: "which ty",
12+
installer: installers.pip({
13+
executable: "ty",
14+
packages: ["ty"],
15+
}),
16+
enabled: true,
17+
}),
518
defineServer({
619
id: "python",
720
label: "Python (pylsp)",
@@ -21,7 +34,7 @@ export const pythonServers: LspServerManifest[] = [
2134
},
2235
},
2336
},
24-
enabled: true,
37+
enabled: false,
2538
}),
2639
];
2740

0 commit comments

Comments
 (0)