From lean4-lsp
Lean language server provides code intelligence for Lean — diagnostics, go-to-definition, find references, hover information, and type checking for .lean files.
Ships in lean4-lsp. Installing the plugin adds it to Claude Code.
This LSP server requires ${CLAUDE_PLUGIN_ROOT}/bin/lean4-lsp-launcher to be installed on your system. Make sure it's available in your PATH before enabling.
Copy this JSON into your .lsp.json to enable this server
Add to your .lsp.json or plugin.json:
{
"lspServers": {
"lean": {
"command": "${CLAUDE_PLUGIN_ROOT}/bin/lean4-lsp-launcher",
"extensionToLanguage": {
".lean": "lean"
}
}
}
}File extensions mapped to language identifiers
Server configuration and transport parameters
${CLAUDE_PLUGIN_ROOT}/bin/lean4-lsp-launcherstdioInitialization options and workspace settings
Initialization Options:
{}Settings:
{}7-day visitors to each server page
npx claudepluginhub lucianoxu/claude-lean4-lsp --plugin lean4-lsp