From c1c9f316c179b076f6d04667173a52de6d4315ca Mon Sep 17 00:00:00 2001 From: Alok Singh Date: Wed, 31 Dec 2025 10:11:17 -0800 Subject: [PATCH] Add lean4-lsp: Lean 4 language server for theorem proving --- .claude-plugin/marketplace.json | 20 ++++++++++++++++++++ plugins/lean4-lsp/README.md | 18 ++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 plugins/lean4-lsp/README.md diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index c11e6442..e5a19f78 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -228,6 +228,26 @@ } } }, + { + "name": "lean4-lsp", + "description": "Lean 4 language server for theorem proving", + "version": "1.0.0", + "author": { + "name": "Alok Singh" + }, + "source": "./plugins/lean4-lsp", + "category": "development", + "strict": false, + "lspServers": { + "lean": { + "command": "lake", + "args": ["serve", "--"], + "extensionToLanguage": { + ".lean": "lean" + } + } + } + }, { "name": "agent-sdk-dev", "description": "Development kit for working with the Claude Agent SDK", diff --git a/plugins/lean4-lsp/README.md b/plugins/lean4-lsp/README.md new file mode 100644 index 00000000..9d46c07b --- /dev/null +++ b/plugins/lean4-lsp/README.md @@ -0,0 +1,18 @@ +# lean4-lsp + +Lean 4 language server for Claude Code, providing code intelligence for theorem proving. + +## Supported Extensions +`.lean` + +## Installation + +Install Lean 4 via elan: + +```bash +curl https://elan.lean-lang.org -sSf | sh +``` + +## More Information +- [Lean 4](https://lean-lang.org/) +- [elan](https://github.com/leanprover/elan)