Interactive setup for Kotlin LSP development environment
Sets up Kotlin LSP with kotlin-language-server, ktlint, and detekt for code intelligence. Use this when starting Kotlin development to enable autocomplete, linting, and error checking in Claude Code.
/plugin marketplace add zircote/kotlin-lsp/plugin install kotlin-lsp@zircote-lspThis command will configure your Kotlin development environment with kotlin-language-server and essential tools.
First, verify Java is installed (JDK 17+ required):
java -version
brew install kotlin-language-server
# Linting and formatting
brew install ktlint
# Static analysis
brew install detekt
kotlin-language-server --version
ktlint --version
detekt --version
export ENABLE_LSP_TOOL=1
Test the LSP integration with a Kotlin file in a Gradle project.