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
These can also be accessed through the `:Copilot suggestion <function>` command (eg. `:Copilot suggestion accept`).
281
309
310
+
### Highlight Groups
311
+
312
+
Copilot uses two highlight groups to style its suggestions:
313
+
314
+
| Highlight Group | Used For | Default Link |
315
+
|---|---|---|
316
+
|`CopilotSuggestion`| Inline ghost text suggestions |`Comment`|
317
+
|`CopilotAnnotation`| Annotations in the panel and inline suggestions |`Comment`|
318
+
319
+
If these highlight groups are not defined by your colorscheme, they will default to linking to `Comment`. To customize them, set the highlights **after** your colorscheme loads, or use a `ColorScheme` autocmd:
Override copilot lsp client settings. The `settings` field is where you can set the values of the options defined in [SettingsOpts.md](./SettingsOpts.md).
399
-
These options are specific to the copilot lsp and can be used to customize its behavior. Ensure that the name field is not overridden as is is used for
400
-
efficiency reasons in numerous checks to verify copilot is actually running. See `:h vim.lsp.start` for list of options.
446
+
Override copilot lsp client settings. See `:h vim.lsp.start` for the list of options.
447
+
Ensure that the `name` field is not overridden as it is used for efficiency reasons in numerous checks to verify copilot is actually running.
448
+
449
+
The `settings` field is where you can customize the copilot lsp behavior. See [SettingsOpts.md](./SettingsOpts.md) for the full list of available settings and their keys.
401
450
402
451
Example:
403
452
@@ -415,6 +464,10 @@ require("copilot").setup {
415
464
}
416
465
```
417
466
467
+
> [!NOTE]
468
+
> The `settings` values follow a nested table structure matching the keys in [SettingsOpts.md](./SettingsOpts.md).
469
+
> For example, `InlineSuggestCount: ["advanced", "inlineSuggestCount"]` becomes `settings = { advanced = { inlineSuggestCount = 3 } }`.
0 commit comments