Clojure LSP integration for Claude Code - provides code intelligence for Clojure files.
.clj, .cljs, .cljc, .edn
Install clojure-lsp: https://clojure-lsp.io/installation/
claude plugin marketplace add Cyrik/clojure-lsp-cc
claude plugin install clojure-lsp-cc@clojure-lsp-ccIt helps to nudge claude a little to use lsp over grep, otherwise it defaults to what it knows. Putting the following into claude.md is what I do:
## Code Intelligence
Prefer LSP over Grep/Glob/Read for code navigation:
- `goToDefinition` / `goToImplementation` to jump to source
- `findReferences` to see all usages across the codebase
- `workspaceSymbol` to find where something is defined
- `documentSymbol` to list all symbols in a file
- `incomingCalls` / `outgoingCalls` for call hierarchy
Before renaming or changing a function signature, use
`findReferences` to find all call sites first.
Use Grep/Glob for text/pattern searches (comments, strings,
config values, Datalog rule names) where LSP doesn't help.
Tip: `goToDefinition` may need multiple hops for aliased
namespaces (e.g., `auth-service/foo` → alias → actual fn).