Skip to content

Add Scala LSP plugin with inline lspServers configuration#61

Open
muhsinali wants to merge 1 commit intoanthropics:mainfrom
muhsinali:add-scala-lsp
Open

Add Scala LSP plugin with inline lspServers configuration#61
muhsinali wants to merge 1 commit intoanthropics:mainfrom
muhsinali:add-scala-lsp

Conversation

@muhsinali
Copy link

@muhsinali muhsinali commented Dec 28, 2025

Summary

Add the Scala LSP plugin using the de facto language server for Scala, Metals, to the official marketplace following the existing conventions set out in a previous PR for pre-existing LSP plugins. This enables the LSP plugin recommendation feature in Claude Code to detect the Scala LSP plugin alongside existing LSP plugins directly from the marketplace.

LSP plugin added

Plugin Language Extensions Binary
scala-lsp Scala .sbt, .sc, .scala metals

Implementation

Following the existing conventions set out in a previous PR for pre-existing LSP plugins:

  • The plugin uses strict: false since it only provides LSP configuration
  • LSP config is inline in the marketplace entry, not in separate .lsp.json files
  • Plugin will be recommended when users edit files with matching extensions AND have the Metals language server binary installed

Test plan

  • claude plugin validate . passes
  • Test with --plugin-dir pointing to this marketplace
  • Verify LSP activates for Scala files when metals binary is installed (see screenshot below)

Example usage

Screenshot 2025-12-28 at 15 42 44

Installation

As mentioned in the README, users need to install the metals binary separately

brew install metals

@muhsinali muhsinali changed the title Add Scala LSP plugin with inline lspServers configuration feat: Add Scala LSP plugin with inline lspServers configuration Dec 31, 2025
@muhsinali muhsinali changed the title feat: Add Scala LSP plugin with inline lspServers configuration Add Scala LSP plugin with inline lspServers configuration Jan 3, 2026
@muhsinali
Copy link
Author

muhsinali commented Jan 7, 2026

@dhollman @noahzweben @amorriscode @kushal-thakkar would it possible to get a review please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant