You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add definitionStyle option to control multi-head goto definition
When a function has multiple heads/clauses, editors like Zed show a picker UI instead of jumping directly.
The new "definitionStyle" initializationOption ("all" or "first") lets users choose whether to return all definition sites or just the first one.
-- debug = false, -- verbose logging to stderr (view with :LspLog)
154
155
},
@@ -233,6 +234,21 @@ To override the binary path manually, add this to your `settings.json`:
233
234
}
234
235
```
235
236
237
+
To configure LSP options (see [LSP options](#lsp-options)):
238
+
239
+
```json
240
+
{
241
+
"lsp": {
242
+
"dexter": {
243
+
"initialization_options": {
244
+
"followDelegates": true,
245
+
"definitionStyle": "first"
246
+
}
247
+
}
248
+
}
249
+
}
250
+
```
251
+
236
252
### Emacs
237
253
238
254
The emacs instructions assume you're using **use-package**.
@@ -478,6 +494,7 @@ If the persistent process can't start, dexter falls back to running `mix format`
478
494
Dexter reads `initializationOptions` from your editor configuration:
479
495
480
496
-**`followDelegates`** (boolean, default: `true`): follow `defdelegate` targets on lookup.
497
+
-**`definitionStyle`** (string, default: `"all"`): controls how many locations are returned when a function has multiple heads (clauses). `"all"` returns every definition site; `"first"` returns only the first one, which makes editors like Zed jump directly instead of showing a picker.
481
498
-**`stdlibPath`** (string): override the Elixir stdlib directory to index. Defaults to auto-detection; use this if your install is non-standard.
482
499
-**`debug`** (boolean, default: `false`): enable verbose logging to stderr. Logs timing and resolution details for every definition, hover, references, and rename request. Can also be enabled via the `DEXTER_DEBUG=true` environment variable.
0 commit comments