just-lsp for Claude Code
Claude Code plugin just-lsp. Runs terror/just-lsp as an LSP server for *.just files and runs just-lsp analyze after edits to justfile, Justfile, .justfile. Contains no parser and no language server.
Coverage
Measured on Claude Code 2.1.261, just-lsp 0.7.1, Windows 11. Each cell names the recipe that proves it.
| File name | LSP tool: symbols, hover, definition, references | Diagnostics after Claude edits or writes the file |
|---|
*.just | yes (just matrix, just intel) | yes, from the language server (just diag-probe) |
justfile, Justfile, .justfile, any case | no (just matrix) | yes, from a PostToolUse hook running just-lsp analyze (just hook-matrix) |
Cause of the no: Claude Code selects an LSP server by path.extname(file); extensionToLanguage keys must be at least two characters starting with .; no filename or glob field exists. path.extname("justfile") is "". Details and binary evidence: docs/claude-code-extensionless-routing.md. Upstream request: anthropics/claude-code#92304.
Prerequisites
| Binary | Purpose | Install |
|---|
just-lsp | language server and analyze CLI | cargo install just-lsp; brew install just-lsp; pacman -S just-lsp; apk add just-lsp; xbps-install -S just-lsp; nix-env -iA nixpkgs.just-lsp; Windows: just-lsp-<version>-x86_64-pc-windows-msvc.zip or -aarch64-pc-windows-msvc.zip from releases, verify against SHA256SUMS, place just-lsp.exe on PATH |
just | just-lsp formats through just --fmt --unstable | casey/just installation |
jq | the hook reads the edited path from hook JSON | jqlang.org |
| Git Bash | Windows only: Claude Code runs shell-form hooks in it | ships with Git for Windows |
justlint | optional, Windows only: flags interpreters that reach System32's WSL bash.exe or need cygpath outside Git Bash | GOPRIVATE=github.com/primeinc go install github.com/primeinc/claude-hooks-mk2/cmd/justlint@89c7671. primeinc/claude-hooks-mk2 is private, so the machine needs git credentials for it. Without justlint the hook reports justlint not run |
Check: just-lsp --version, jq --version.
Install
/plugin marketplace add primeinc/claude-just-lsp
/plugin install just-lsp@claude-just-lsp
Local checkout for one session: claude --plugin-dir /path/to/claude-just-lsp.
Files