diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/lsp.md | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/docs/lsp.md b/docs/lsp.md index a22a4c52..c89c42f7 100644 --- a/docs/lsp.md +++ b/docs/lsp.md @@ -51,11 +51,16 @@ Three rules make it safe: Every backend renders into one format: ``` -/abs/path/to/file.zig:LINE:COL text +/abs/path/to/file.zig:LINE:COL text +/abs/path/to/file.zig:LINE:COL-ENDCOL text ``` -1-based line and column, absolute path. This is the format `look.zig` already -resolves, `runSearch` already produces and `n`/`N` already step — so: +1-based line and column, absolute path. The second form carries the answer's +RANGE where the protocol gave one on a single line (a token, a symbol's name), +and a look on it SELECTS that span rather than parking at its first cell — so +`gd` lands on the whole name and `gr` steps references with each one +highlighted. This is the format `look.zig` already resolves, `runSearch` +already produces and `n`/`N` already step — so: - **one row from a goto** → jump straight there (`lookAt`) - **several rows** → an output buffer, which `n`/`N` walk |
