Type object
Schema URL https://catalog.lintel.tools/schemas/claude-code/lsp-server-config/latest.json

Validate with Lintel

npx @lintel/lintel check
Type: object

LSP server configuration for a language. The language server binary must be installed separately on the user's machine. See available LSP plugins for pre-built options.

Properties

command string required

The LSP binary to execute (must be in PATH).

Examples: "gopls", "typescript-language-server", "rust-analyzer", "pyright"
extensionToLanguage Record<string, string> required

Maps file extensions to language identifiers.

Examples: {".go":"go"}, {".ts":"typescript",".tsx":"typescriptreact"}
args string[]

Command-line arguments for the LSP server.

Examples: ["serve"], ["--stdio"]
transport string

Communication transport protocol.

Default: "stdio"
Values: "stdio" "socket"
env Record<string, string>

Environment variables to set when starting the server.

initializationOptions object

Options passed to the server during initialization.

settings object

Settings passed via workspace/didChangeConfiguration.

workspaceFolder string

Workspace folder path.

startupTimeout number

Max time to wait for server startup in milliseconds.

Examples: 5000
shutdownTimeout number

Max time to wait for graceful shutdown in milliseconds.

Examples: 5000
restartOnCrash boolean

Whether to automatically restart the server if it crashes.

maxRestarts number

Maximum number of restart attempts before giving up.