litclaude-ai 0.3.3 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +71 -0
- package/README.md +5 -5
- package/README_ko-KR.md +5 -5
- package/RELEASE_CHECKLIST.md +8 -6
- package/cover.png +0 -0
- package/generate_cover.py +1 -1
- package/package.json +1 -1
- package/plugins/litclaude/.claude-plugin/plugin.json +1 -1
- package/plugins/litclaude/bin/litclaude-hook.js +42 -6
- package/plugins/litclaude/commands/dynamic-workflow.md +6 -6
- package/plugins/litclaude/commands/litresearch.md +37 -0
- package/plugins/litclaude/commands/review-work.md +5 -5
- package/plugins/litclaude/hooks/hooks.json +12 -0
- package/plugins/litclaude/lib/litgoal/autoloop.mjs +78 -0
- package/plugins/litclaude/lib/litgoal/cli.mjs +8 -0
- package/plugins/litclaude/skills/lit-loop/SKILL.md +12 -10
- package/plugins/litclaude/skills/lit-plan/SKILL.md +9 -10
- package/plugins/litclaude/skills/litgoal/SKILL.md +41 -5
- package/plugins/litclaude/skills/litresearch/SKILL.md +148 -0
- package/plugins/litclaude/skills/lsp-setup/SKILL.md +151 -0
- package/plugins/litclaude/skills/lsp-setup/references/bash/README.md +63 -0
- package/plugins/litclaude/skills/lsp-setup/references/c-cpp/README.md +72 -0
- package/plugins/litclaude/skills/lsp-setup/references/csharp/README.md +81 -0
- package/plugins/litclaude/skills/lsp-setup/references/dart/README.md +53 -0
- package/plugins/litclaude/skills/lsp-setup/references/elixir/README.md +57 -0
- package/plugins/litclaude/skills/lsp-setup/references/go/README.md +59 -0
- package/plugins/litclaude/skills/lsp-setup/references/haskell/README.md +64 -0
- package/plugins/litclaude/skills/lsp-setup/references/java/README.md +66 -0
- package/plugins/litclaude/skills/lsp-setup/references/julia/README.md +62 -0
- package/plugins/litclaude/skills/lsp-setup/references/kotlin/README.md +68 -0
- package/plugins/litclaude/skills/lsp-setup/references/lua/README.md +64 -0
- package/plugins/litclaude/skills/lsp-setup/references/php/README.md +56 -0
- package/plugins/litclaude/skills/lsp-setup/references/python/README.md +68 -0
- package/plugins/litclaude/skills/lsp-setup/references/ruby/README.md +62 -0
- package/plugins/litclaude/skills/lsp-setup/references/rust/README.md +61 -0
- package/plugins/litclaude/skills/lsp-setup/references/swift/README.md +60 -0
- package/plugins/litclaude/skills/lsp-setup/references/terraform/README.md +61 -0
- package/plugins/litclaude/skills/lsp-setup/references/typescript/README.md +77 -0
- package/plugins/litclaude/skills/lsp-setup/references/yaml/README.md +60 -0
- package/plugins/litclaude/skills/lsp-setup/references/zig/README.md +55 -0
- package/plugins/litclaude/skills/lsp-setup/scripts/detect-lsp.ts +220 -0
- package/plugins/litclaude/skills/lsp-setup/scripts/lsp-server-table.ts +146 -0
- package/plugins/litclaude/skills/lsp-setup/scripts/tsconfig.json +18 -0
- package/plugins/litclaude/skills/lsp-setup/scripts/verify-lsp.ts +242 -0
- package/plugins/litclaude/skills/start-work/SKILL.md +12 -13
- package/plugins/litclaude/skills/visual-qa/SKILL.md +259 -0
- package/plugins/litclaude/skills/visual-qa/scripts/ansi.ts +17 -0
- package/plugins/litclaude/skills/visual-qa/scripts/cli.ts +96 -0
- package/plugins/litclaude/skills/visual-qa/scripts/east-asian-width.ts +72 -0
- package/plugins/litclaude/skills/visual-qa/scripts/image-diff.ts +109 -0
- package/plugins/litclaude/skills/visual-qa/scripts/png-crc.ts +27 -0
- package/plugins/litclaude/skills/visual-qa/scripts/png-decode.ts +206 -0
- package/plugins/litclaude/skills/visual-qa/scripts/png-synth.ts +57 -0
- package/plugins/litclaude/skills/visual-qa/scripts/tui-grid.ts +88 -0
- package/plugins/litclaude/skills/visual-qa/scripts/types.ts +54 -0
- package/scripts/qa-portable-install.sh +1 -1
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# Elixir — LSP setup (Claude Code / LitClaude)
|
|
2
|
+
|
|
3
|
+
- **Recommended server:** `elixir-ls`
|
|
4
|
+
- **Extensions:** `.ex .exs`
|
|
5
|
+
- **Install hint:** `https://github.com/elixir-lsp/elixir-ls`
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
ElixirLS needs Erlang/OTP and Elixir installed first. Build the release from
|
|
10
|
+
`https://github.com/elixir-lsp/elixir-ls` and put the `elixir-ls` launcher script on PATH.
|
|
11
|
+
|
|
12
|
+
- **macOS:** `brew install elixir-ls` (Homebrew provides the launcher), or build the release manually
|
|
13
|
+
- **Linux:** clone elixir-ls, run `mix deps.get && mix compile && mix elixir_ls.release2 -o release`, then add `release/` to PATH
|
|
14
|
+
- **Windows:** build the release and add the `release` dir (use the `.bat` launcher) to PATH
|
|
15
|
+
|
|
16
|
+
Confirm it resolves:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
command -v elixir-ls
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Configure
|
|
23
|
+
|
|
24
|
+
Add an `elixir` entry to `plugins/litclaude/.lsp.json`:
|
|
25
|
+
|
|
26
|
+
```json
|
|
27
|
+
{
|
|
28
|
+
"elixir": {
|
|
29
|
+
"command": ["elixir-ls"],
|
|
30
|
+
"extensionToLanguage": {
|
|
31
|
+
".ex": "elixir",
|
|
32
|
+
".exs": "elixir"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Claude Code routes `.ex`/`.exs` edits to `elixir-ls` via the map. No extra
|
|
39
|
+
configuration is normally required.
|
|
40
|
+
|
|
41
|
+
## Alternatives
|
|
42
|
+
|
|
43
|
+
- **lexical**: set the `command` to `["lexical"]` — fast, modern alternative LSP.
|
|
44
|
+
- **next-ls**: set the `command` to `["nextls", "--stdio"]` — from the elixir-tools project.
|
|
45
|
+
|
|
46
|
+
## Troubleshooting
|
|
47
|
+
- **PATH:** `elixir-ls` must be on PATH; reopen the shell after install.
|
|
48
|
+
- **asdf users:** the launcher is a shim — after `asdf install`, run `asdf reshim elixir` so the `elixir-ls` shim resolves, and ensure the Erlang/Elixir versions match the build.
|
|
49
|
+
- **First start is slow:** ElixirLS compiles your deps on first run; initial diagnostics can take a while on large projects.
|
|
50
|
+
- **OTP mismatch:** build elixir-ls with the same Erlang/Elixir versions you use for the project to avoid bytecode errors.
|
|
51
|
+
|
|
52
|
+
## Verify
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
node --experimental-strip-types ../../scripts/verify-lsp.ts path/to/file.ex
|
|
56
|
+
# or: bun ../../scripts/verify-lsp.ts path/to/file.ex
|
|
57
|
+
```
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Go — LSP setup (Claude Code / LitClaude)
|
|
2
|
+
|
|
3
|
+
- **Recommended server:** `gopls`
|
|
4
|
+
- **Extensions:** `.go`
|
|
5
|
+
- **Install hint:** `go install golang.org/x/tools/gopls@latest`
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
- **macOS:** `go install golang.org/x/tools/gopls@latest` (or `brew install gopls`)
|
|
10
|
+
- **Linux:** `go install golang.org/x/tools/gopls@latest`
|
|
11
|
+
- **Windows:** `go install golang.org/x/tools/gopls@latest`
|
|
12
|
+
|
|
13
|
+
Requires the Go toolchain. `go install` drops the binary in `$GOPATH/bin`
|
|
14
|
+
(default `~/go/bin`) — that directory must be on PATH.
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
export PATH="$PATH:$(go env GOPATH)/bin"
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Confirm it resolves:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
command -v gopls
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Configure
|
|
27
|
+
|
|
28
|
+
Add a `go` entry to `plugins/litclaude/.lsp.json`:
|
|
29
|
+
|
|
30
|
+
```json
|
|
31
|
+
{
|
|
32
|
+
"go": {
|
|
33
|
+
"command": ["gopls"],
|
|
34
|
+
"extensionToLanguage": {
|
|
35
|
+
".go": "go"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Claude Code routes `.go` edits to `gopls` via the extension map. Analyses such as
|
|
42
|
+
`staticcheck` are configured in `gopls` settings (e.g. a workspace `settings.json`
|
|
43
|
+
consumed by your editor) rather than in `.lsp.json`.
|
|
44
|
+
|
|
45
|
+
## Alternatives
|
|
46
|
+
|
|
47
|
+
None — `gopls` is the official and de facto sole Go language server.
|
|
48
|
+
|
|
49
|
+
## Troubleshooting
|
|
50
|
+
- **PATH:** `gopls` must be on PATH; ensure `$(go env GOPATH)/bin` is exported, then reopen the shell.
|
|
51
|
+
- **No diagnostics / "no required module":** open the directory containing `go.mod` as the workspace root. Outside a module, gopls degrades. Run `go mod tidy` if dependencies are unresolved.
|
|
52
|
+
- **Stale toolchain:** reinstall with `go install golang.org/x/tools/gopls@latest` after upgrading Go.
|
|
53
|
+
|
|
54
|
+
## Verify
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
node --experimental-strip-types ../../scripts/verify-lsp.ts path/to/file.go
|
|
58
|
+
# or: bun ../../scripts/verify-lsp.ts path/to/file.go
|
|
59
|
+
```
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Haskell — LSP setup (Claude Code / LitClaude)
|
|
2
|
+
|
|
3
|
+
- **Recommended server:** `haskell-language-server-wrapper --lsp`
|
|
4
|
+
- **Extensions:** `.hs .lhs`
|
|
5
|
+
- **Install hint:** `ghcup install hls`
|
|
6
|
+
|
|
7
|
+
The `-wrapper` binary detects your project's GHC version and dispatches to the matching HLS build.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
- **macOS:** `ghcup install hls` (install ghcup via `brew install ghcup` or the official script)
|
|
12
|
+
- **Linux:** `ghcup install hls` (ghcup script from https://www.haskell.org/ghcup/)
|
|
13
|
+
- **Windows:** `ghcup install hls` (ghcup is installed via the Windows installer / PowerShell bootstrap)
|
|
14
|
+
|
|
15
|
+
HLS needs a working GHC plus Cabal and/or Stack. Install a matching toolchain first:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
ghcup install ghc
|
|
19
|
+
ghcup install cabal
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Confirm it resolves:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
command -v haskell-language-server-wrapper
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Configure
|
|
29
|
+
|
|
30
|
+
Add a `haskell` entry to `plugins/litclaude/.lsp.json`:
|
|
31
|
+
|
|
32
|
+
```json
|
|
33
|
+
{
|
|
34
|
+
"haskell": {
|
|
35
|
+
"command": ["haskell-language-server-wrapper", "--lsp"],
|
|
36
|
+
"extensionToLanguage": {
|
|
37
|
+
".hs": "haskell",
|
|
38
|
+
".lhs": "haskell"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Claude Code routes `.hs`/`.lhs` edits to the HLS wrapper via the map. Per-project
|
|
45
|
+
plugin/formatter settings normally live in a `hie.yaml` (cradle) and
|
|
46
|
+
`.haskell-language-server` files rather than `.lsp.json`.
|
|
47
|
+
|
|
48
|
+
## Alternatives
|
|
49
|
+
|
|
50
|
+
- `ghcide` (the core HLS engine, standalone) — largely superseded by HLS.
|
|
51
|
+
- `hlint` standalone for lint-only checks; `ormolu`/`fourmolu` for formatting.
|
|
52
|
+
|
|
53
|
+
## Troubleshooting
|
|
54
|
+
- **PATH:** `haskell-language-server-wrapper` on PATH; reopen shell after `ghcup install`.
|
|
55
|
+
- **GHC mismatch:** the installed HLS must support your project's GHC version — run `ghcup install hls` for that GHC, or align GHC to a supported one.
|
|
56
|
+
- **No cradle:** multi-package repos may need a `hie.yaml`; generate one with `gen-hie > hie.yaml`.
|
|
57
|
+
- **Slow first load:** HLS compiles dependencies on first open; let it finish indexing.
|
|
58
|
+
|
|
59
|
+
## Verify
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
node --experimental-strip-types ../../scripts/verify-lsp.ts path/to/file.hs
|
|
63
|
+
# or: bun ../../scripts/verify-lsp.ts path/to/file.hs
|
|
64
|
+
```
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# Java — LSP setup (Claude Code / LitClaude)
|
|
2
|
+
|
|
3
|
+
- **Recommended server:** `jdtls`
|
|
4
|
+
- **Extensions:** `.java`
|
|
5
|
+
- **Install hint:** `https://github.com/eclipse-jdtls/eclipse.jdt.ls`
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
- **macOS:** `brew install jdtls`
|
|
10
|
+
- **Linux:** Download from [eclipse-jdtls/eclipse.jdt.ls](https://github.com/eclipse-jdtls/eclipse.jdt.ls) releases, extract, and wrap the launcher as `jdtls` on PATH (some distros package it as `jdtls`/`jdt-language-server`).
|
|
11
|
+
- **Windows:** Download the release archive and add the `jdtls` launcher (`bin/jdtls.bat` or the Python wrapper) to PATH.
|
|
12
|
+
|
|
13
|
+
Requires a **JDK 17+** to run the language server itself (the project may target an older Java version).
|
|
14
|
+
|
|
15
|
+
Confirm it resolves:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
command -v jdtls
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Configure
|
|
22
|
+
|
|
23
|
+
Add a `java` entry to `plugins/litclaude/.lsp.json`:
|
|
24
|
+
|
|
25
|
+
```json
|
|
26
|
+
{
|
|
27
|
+
"java": {
|
|
28
|
+
"command": ["jdtls"],
|
|
29
|
+
"extensionToLanguage": {
|
|
30
|
+
".java": "java"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Claude Code routes `.java` edits to `jdtls` via the extension map. jdtls maintains
|
|
37
|
+
a per-project workspace data directory and the first index is slow (it resolves
|
|
38
|
+
the full classpath and builds). If `jdtls` cannot find a runtime, export
|
|
39
|
+
`JAVA_HOME` for a JDK 17+ in the shell that launches Claude Code:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
export JAVA_HOME=/Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Most settings (runtimes, format, import order) come from `settings.java.*`
|
|
46
|
+
defaults and work for Maven/Gradle projects with a standard layout.
|
|
47
|
+
|
|
48
|
+
## Alternatives
|
|
49
|
+
|
|
50
|
+
**No mainstream alternative.** `jdtls` (Eclipse JDT Language Server) is the
|
|
51
|
+
de-facto standard and powers the official VS Code Java extension.
|
|
52
|
+
|
|
53
|
+
## Troubleshooting
|
|
54
|
+
|
|
55
|
+
- **PATH:** `jdtls` on PATH; reopen shell after install.
|
|
56
|
+
- **No JDK found:** server exits immediately — set `JAVA_HOME` to a JDK 17+.
|
|
57
|
+
- **Slow / no completions at first:** the initial classpath index can take a minute or more on large Maven/Gradle projects; wait for it to finish.
|
|
58
|
+
- **Stale state:** delete the jdtls workspace data dir to force a clean re-index if results go wrong after big dependency changes.
|
|
59
|
+
- **Build tool required:** keep `pom.xml` / `build.gradle` valid; a broken build descriptor breaks symbol resolution.
|
|
60
|
+
|
|
61
|
+
## Verify
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
node --experimental-strip-types ../../scripts/verify-lsp.ts path/to/File.java
|
|
65
|
+
# or: bun ../../scripts/verify-lsp.ts path/to/File.java
|
|
66
|
+
```
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Julia — LSP setup (Claude Code / LitClaude)
|
|
2
|
+
|
|
3
|
+
- **Recommended server:** `julia --startup-file=no --history-file=no -e "using LanguageServer; runserver()"`
|
|
4
|
+
- **Extensions:** `.jl`
|
|
5
|
+
- **Install hint:** `julia -e 'using Pkg; Pkg.add("LanguageServer")'`
|
|
6
|
+
|
|
7
|
+
The PATH executable is `julia`; LanguageServer.jl is launched through the `-e` snippet, not as its own binary.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
Install Julia (juliaup recommended), then add the `LanguageServer` package:
|
|
12
|
+
|
|
13
|
+
- **macOS:** `brew install juliaup && juliaup add release`
|
|
14
|
+
- **Linux:** `curl -fsSL https://install.julialang.org | sh` (installs juliaup)
|
|
15
|
+
- **Windows:** `winget install julia -s msstore` (installs juliaup)
|
|
16
|
+
|
|
17
|
+
Then add the package — ideally into a shared `@lsp` environment so it is not tied to one project:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
julia --project=@lsp -e 'using Pkg; Pkg.add("LanguageServer")'
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Confirm Julia resolves (the LSP binary IS `julia`):
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
command -v julia
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Configure
|
|
30
|
+
|
|
31
|
+
Add a `julia` entry to `plugins/litclaude/.lsp.json`:
|
|
32
|
+
|
|
33
|
+
```json
|
|
34
|
+
{
|
|
35
|
+
"julia": {
|
|
36
|
+
"command": ["julia", "--startup-file=no", "--history-file=no", "-e", "using LanguageServer; runserver()"],
|
|
37
|
+
"extensionToLanguage": {
|
|
38
|
+
".jl": "julia"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Claude Code routes `.jl` edits to the Julia language server via the map. To pin
|
|
45
|
+
which environment hosts LanguageServer.jl, export `JULIA_PROJECT=@lsp` in the
|
|
46
|
+
shell that launches Claude Code.
|
|
47
|
+
|
|
48
|
+
## Alternatives
|
|
49
|
+
|
|
50
|
+
- The VS Code Julia extension bundles the same LanguageServer.jl server.
|
|
51
|
+
|
|
52
|
+
## Troubleshooting
|
|
53
|
+
- **PATH:** `julia` on PATH (not a `julials` binary); reopen shell after juliaup install.
|
|
54
|
+
- **First run precompiles — be patient:** the initial launch compiles LanguageServer.jl and may take minutes with no output; do not kill it. Subsequent starts are fast.
|
|
55
|
+
- **Package not found:** `LanguageServer` must be installed in the environment the server runs in (e.g. `@lsp`); add it there and set `JULIA_PROJECT`.
|
|
56
|
+
|
|
57
|
+
## Verify
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
node --experimental-strip-types ../../scripts/verify-lsp.ts path/to/file.jl
|
|
61
|
+
# or: bun ../../scripts/verify-lsp.ts path/to/file.jl
|
|
62
|
+
```
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# Kotlin — LSP setup (Claude Code / LitClaude)
|
|
2
|
+
|
|
3
|
+
- **Recommended server:** `kotlin-lsp`
|
|
4
|
+
- **Extensions:** `.kt .kts`
|
|
5
|
+
- **Install hint:** `https://github.com/Kotlin/kotlin-lsp`
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
The official **JetBrains Kotlin LSP** is pre-release. Download a build from the [Kotlin/kotlin-lsp](https://github.com/Kotlin/kotlin-lsp) releases and put the `kotlin-lsp` launcher on PATH.
|
|
10
|
+
|
|
11
|
+
- **macOS:** Download the release archive, extract, then symlink the launcher: `ln -s /path/to/kotlin-lsp/kotlin-lsp.sh /usr/local/bin/kotlin-lsp`
|
|
12
|
+
- **Linux:** Same as macOS — extract the release and place/symlink `kotlin-lsp` on PATH.
|
|
13
|
+
- **Windows:** Extract the release and add the directory containing `kotlin-lsp.bat` to PATH (invoke as `kotlin-lsp`).
|
|
14
|
+
|
|
15
|
+
Requires a **JDK** on the machine to run the server.
|
|
16
|
+
|
|
17
|
+
Confirm it resolves:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
command -v kotlin-lsp
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Configure
|
|
24
|
+
|
|
25
|
+
Add a `kotlin` entry to `plugins/litclaude/.lsp.json`:
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
{
|
|
29
|
+
"kotlin": {
|
|
30
|
+
"command": ["kotlin-lsp"],
|
|
31
|
+
"extensionToLanguage": {
|
|
32
|
+
".kt": "kotlin",
|
|
33
|
+
".kts": "kotlin"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Claude Code routes `.kt`/`.kts` edits to `kotlin-lsp` via the map. If the server
|
|
40
|
+
cannot find a Java runtime, export `JAVA_HOME` in the launching shell:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
export JAVA_HOME=/Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
The server resolves classpath from Gradle/Maven; keep the build descriptor
|
|
47
|
+
importable.
|
|
48
|
+
|
|
49
|
+
## Alternatives
|
|
50
|
+
|
|
51
|
+
**`fwcd/kotlin-language-server`** — older community server. Still usable but less
|
|
52
|
+
actively maintained than the official JetBrains one; set the `command` to its
|
|
53
|
+
launcher if you prefer it.
|
|
54
|
+
|
|
55
|
+
## Troubleshooting
|
|
56
|
+
|
|
57
|
+
- **PATH:** `kotlin-lsp` on PATH; reopen shell after install.
|
|
58
|
+
- **Pre-release churn:** the JetBrains server is early; pin a known-good release and expect occasional breakage.
|
|
59
|
+
- **No JDK:** server fails to start — install a JDK and/or set `JAVA_HOME`.
|
|
60
|
+
- **Slow first import:** Gradle resolution on first open can be slow on large projects; let it complete.
|
|
61
|
+
- **`.kts` scripts:** build/script files resolve more slowly than `.kt` sources; this is expected.
|
|
62
|
+
|
|
63
|
+
## Verify
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
node --experimental-strip-types ../../scripts/verify-lsp.ts path/to/File.kt
|
|
67
|
+
# or: bun ../../scripts/verify-lsp.ts path/to/File.kt
|
|
68
|
+
```
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Lua — LSP setup (Claude Code / LitClaude)
|
|
2
|
+
|
|
3
|
+
- **Recommended server:** `lua-language-server`
|
|
4
|
+
- **Extensions:** `.lua`
|
|
5
|
+
- **Install hint:** `https://github.com/LuaLS/lua-language-server`
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
See `https://github.com/LuaLS/lua-language-server`.
|
|
10
|
+
|
|
11
|
+
- **macOS:** `brew install lua-language-server`
|
|
12
|
+
- **Linux:** download a release from GitHub, or `pacman -S lua-language-server` (Arch) / AUR
|
|
13
|
+
- **Windows:** download a release from the GitHub releases page and add its `bin` to PATH
|
|
14
|
+
|
|
15
|
+
Confirm it resolves:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
command -v lua-language-server
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Configure
|
|
22
|
+
|
|
23
|
+
Add a `lua` entry to `plugins/litclaude/.lsp.json`:
|
|
24
|
+
|
|
25
|
+
```json
|
|
26
|
+
{
|
|
27
|
+
"lua": {
|
|
28
|
+
"command": ["lua-language-server"],
|
|
29
|
+
"extensionToLanguage": {
|
|
30
|
+
".lua": "lua"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Claude Code routes `.lua` edits to `lua-language-server` via the map. Deeper
|
|
37
|
+
behavior (Neovim runtime libraries, the Lua runtime version, allowed globals)
|
|
38
|
+
is configured through a project `.luarc.json` rather than `.lsp.json`. For
|
|
39
|
+
Neovim config work, a `.luarc.json` like the following resolves `vim` globals and
|
|
40
|
+
the stdlib:
|
|
41
|
+
|
|
42
|
+
```json
|
|
43
|
+
{
|
|
44
|
+
"runtime": { "version": "LuaJIT" },
|
|
45
|
+
"workspace": { "library": ["/usr/share/nvim/runtime/lua"] },
|
|
46
|
+
"diagnostics": { "globals": ["vim"] }
|
|
47
|
+
}
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Alternatives
|
|
51
|
+
|
|
52
|
+
None.
|
|
53
|
+
|
|
54
|
+
## Troubleshooting
|
|
55
|
+
- **PATH:** `lua-language-server` must be on PATH; reopen the shell after install.
|
|
56
|
+
- **Undefined `vim` global:** add `vim` to `diagnostics.globals` and set `workspace.library` in `.luarc.json` (see above) for Neovim work.
|
|
57
|
+
- **Wrong runtime version:** set `runtime.version` (`LuaJIT`, `Lua 5.4`, etc.) to match your interpreter, or stdlib functions report as undefined.
|
|
58
|
+
|
|
59
|
+
## Verify
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
node --experimental-strip-types ../../scripts/verify-lsp.ts path/to/file.lua
|
|
63
|
+
# or: bun ../../scripts/verify-lsp.ts path/to/file.lua
|
|
64
|
+
```
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# PHP — LSP setup (Claude Code / LitClaude)
|
|
2
|
+
|
|
3
|
+
- **Recommended server:** `intelephense --stdio`
|
|
4
|
+
- **Extensions:** `.php`
|
|
5
|
+
- **Install hint:** `npm install -g intelephense`
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
Intelephense is a Node package, so Node.js (and npm) must be installed first.
|
|
10
|
+
|
|
11
|
+
- **macOS:** `npm install -g intelephense`
|
|
12
|
+
- **Linux:** `npm install -g intelephense`
|
|
13
|
+
- **Windows:** `npm install -g intelephense`
|
|
14
|
+
|
|
15
|
+
Confirm it resolves:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
command -v intelephense
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Configure
|
|
22
|
+
|
|
23
|
+
Add a `php` entry to `plugins/litclaude/.lsp.json`:
|
|
24
|
+
|
|
25
|
+
```json
|
|
26
|
+
{
|
|
27
|
+
"php": {
|
|
28
|
+
"command": ["intelephense", "--stdio"],
|
|
29
|
+
"extensionToLanguage": {
|
|
30
|
+
".php": "php"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Claude Code routes `.php` edits to `intelephense` via the map. Intelephense's
|
|
37
|
+
premium features (rename, find-all-implementations, etc.) require a licence key,
|
|
38
|
+
which is passed through the editor's LSP `initializationOptions` rather than
|
|
39
|
+
`.lsp.json`. Without a key the server runs fine in free mode.
|
|
40
|
+
|
|
41
|
+
## Alternatives
|
|
42
|
+
|
|
43
|
+
**phpactor** — pure-PHP, no Node dependency. Set the `command` to
|
|
44
|
+
`["phpactor", "language-server"]`.
|
|
45
|
+
|
|
46
|
+
## Troubleshooting
|
|
47
|
+
- **PATH:** `intelephense` must be on PATH; reopen the shell after a global npm install. If missing, check `npm bin -g` is on PATH.
|
|
48
|
+
- **No Node:** Intelephense fails to start without Node.js. Install Node, then reinstall.
|
|
49
|
+
- **Wrong PHP version inference:** set `intelephense.environment.phpVersion` (via your editor's init options) to match your project.
|
|
50
|
+
|
|
51
|
+
## Verify
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
node --experimental-strip-types ../../scripts/verify-lsp.ts path/to/file.php
|
|
55
|
+
# or: bun ../../scripts/verify-lsp.ts path/to/file.php
|
|
56
|
+
```
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# Python — LSP setup (Claude Code / LitClaude)
|
|
2
|
+
|
|
3
|
+
- **Recommended server:** `basedpyright-langserver --stdio`
|
|
4
|
+
- **Extensions:** `.py .pyi`
|
|
5
|
+
- **Install hint:** `pip install basedpyright`
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
- **macOS:** `pip install basedpyright` (or `uv tool install basedpyright`)
|
|
10
|
+
- **Linux:** `pip install basedpyright` (or `uv tool install basedpyright`)
|
|
11
|
+
- **Windows:** `pip install basedpyright`
|
|
12
|
+
|
|
13
|
+
Prefer `uv tool install basedpyright` when the project uses uv — it keeps the
|
|
14
|
+
server isolated from project venvs and always on PATH.
|
|
15
|
+
|
|
16
|
+
Confirm it resolves:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
command -v basedpyright-langserver
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Configure
|
|
23
|
+
|
|
24
|
+
Add a `python` entry to `plugins/litclaude/.lsp.json`. LitClaude keys each entry
|
|
25
|
+
by language name with a `command` array and an `extensionToLanguage` map:
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
{
|
|
29
|
+
"python": {
|
|
30
|
+
"command": ["basedpyright-langserver", "--stdio"],
|
|
31
|
+
"extensionToLanguage": {
|
|
32
|
+
".py": "python",
|
|
33
|
+
".pyi": "python"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Claude Code routes `.py`/`.pyi` edits to this server via the extension map.
|
|
40
|
+
Type-check strictness lives in `pyrightconfig.json` or `[tool.basedpyright]` in
|
|
41
|
+
`pyproject.toml`, not in `.lsp.json`.
|
|
42
|
+
|
|
43
|
+
## Choosing a server
|
|
44
|
+
|
|
45
|
+
Type checkers and the linter serve different roles. Run a type server, and
|
|
46
|
+
optionally `ruff` ALONGSIDE it (not instead). Set the `command` accordingly:
|
|
47
|
+
|
|
48
|
+
| command | install | role |
|
|
49
|
+
| ------------------------------------ | ---------------------- | --------------------------------------- |
|
|
50
|
+
| `["basedpyright-langserver", "--stdio"]` | `pip install basedpyright` | strictest types, **default** |
|
|
51
|
+
| `["pyright-langserver", "--stdio"]` | `pip install pyright` | upstream Microsoft type checker |
|
|
52
|
+
| `["ty", "server"]` | `pip install ty` | Astral, very fast, pre-1.0/experimental |
|
|
53
|
+
| `["ruff", "server"]` | `pip install ruff` | lint + format only, complements a type server |
|
|
54
|
+
|
|
55
|
+
Recommended: keep `basedpyright` as the `python` entry. `ruff` does not
|
|
56
|
+
type-check, so if you want lint diagnostics too run it as a separate tool rather
|
|
57
|
+
than replacing the type server.
|
|
58
|
+
|
|
59
|
+
## Troubleshooting
|
|
60
|
+
- **PATH:** `basedpyright-langserver` must be on PATH; reopen shell after install. `uv tool install` writes to `~/.local/bin`.
|
|
61
|
+
- **Wrong interpreter / missing imports:** the server must see the project venv. Set `python.pythonPath` / `venvPath` in `pyrightconfig.json`, or activate the venv before launching.
|
|
62
|
+
|
|
63
|
+
## Verify
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
node --experimental-strip-types ../../scripts/verify-lsp.ts path/to/file.py
|
|
67
|
+
# or: bun ../../scripts/verify-lsp.ts path/to/file.py
|
|
68
|
+
```
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Ruby — LSP setup (Claude Code / LitClaude)
|
|
2
|
+
|
|
3
|
+
- **Recommended server:** `rubocop --lsp`
|
|
4
|
+
- **Extensions:** `.rb .rake .gemspec .ru`
|
|
5
|
+
- **Install hint:** `gem install rubocop`
|
|
6
|
+
|
|
7
|
+
> **Note:** the executable invoked is **`rubocop`** (`rubocop --lsp`). RuboCop must be installed: `gem install rubocop`.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
- **macOS:** `gem install rubocop`
|
|
12
|
+
- **Linux:** `gem install rubocop`
|
|
13
|
+
- **Windows:** `gem install rubocop`
|
|
14
|
+
|
|
15
|
+
In a Bundler project, prefer adding `rubocop` to the `Gemfile` and running via `bundle exec`.
|
|
16
|
+
|
|
17
|
+
Confirm it resolves (check `rubocop`, since that is what runs):
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
command -v rubocop
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Configure
|
|
24
|
+
|
|
25
|
+
Add a `ruby` entry to `plugins/litclaude/.lsp.json`:
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
{
|
|
29
|
+
"ruby": {
|
|
30
|
+
"command": ["rubocop", "--lsp"],
|
|
31
|
+
"extensionToLanguage": {
|
|
32
|
+
".rb": "ruby",
|
|
33
|
+
".rake": "ruby",
|
|
34
|
+
".gemspec": "ruby",
|
|
35
|
+
".ru": "ruby"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Claude Code routes these extensions to `rubocop --lsp` via the map. Behavior is
|
|
42
|
+
driven by your `.rubocop.yml`; the server surfaces RuboCop diagnostics,
|
|
43
|
+
formatting, and code actions over LSP.
|
|
44
|
+
|
|
45
|
+
## Alternatives
|
|
46
|
+
|
|
47
|
+
- **Shopify `ruby-lsp`** — the standalone `ruby-lsp` executable, richer navigation than RuboCop alone. Set the `command` to `["ruby-lsp"]`.
|
|
48
|
+
- **`solargraph`** — older completion/type server; install with `gem install solargraph`, set the `command` to `["solargraph", "stdio"]`.
|
|
49
|
+
|
|
50
|
+
## Troubleshooting
|
|
51
|
+
|
|
52
|
+
- **PATH:** `rubocop` on PATH (that is the invoked binary); reopen shell after install.
|
|
53
|
+
- **`rubocop` not found:** install RuboCop with `gem install rubocop`.
|
|
54
|
+
- **Bundler mismatch:** if the project pins RuboCop in its `Gemfile`, run inside the bundle so versions match.
|
|
55
|
+
- **No diagnostics:** check `.rubocop.yml` is valid and not disabling everything.
|
|
56
|
+
|
|
57
|
+
## Verify
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
node --experimental-strip-types ../../scripts/verify-lsp.ts path/to/file.rb
|
|
61
|
+
# or: bun ../../scripts/verify-lsp.ts path/to/file.rb
|
|
62
|
+
```
|