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
Override copilot lsp client settings. The `settings` field is where you can set the values of the options defined in [SettingsOpts.md](./SettingsOpts.md).
342
343
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
343
-
efficiency reasons in numerous checks to verify copilot is actually running. See `:h vim.lsp.start_client` for list of options.
344
+
efficiency reasons in numerous checks to verify copilot is actually running. See `:h vim.lsp.start` for list of options.
344
345
345
346
Example:
346
347
@@ -432,3 +433,28 @@ The `copilot.api` module can be used to build integrations on top of `copilot.lu
432
433
-[giuxtaposition/blink-cmp-copilot](https://github.com/giuxtaposition/blink-cmp-copilot): Integration with [`blink.cmp`](https://github.com/Saghen/blink.cmp).
433
434
-[fang2hou/blink-copilot](https://github.com/fang2hou/blink-copilot): Integration with [`blink.cmp`](https://github.com/Saghen/blink.cmp), with some differences.
434
435
-[AndreM222/copilot-lualine](https://github.com/AndreM222/copilot-lualine): Integration with [`lualine.nvim`](https://github.com/nvim-lualine/lualine.nvim).
436
+
437
+
## FAQ
438
+
439
+
> Certificate Parsing Error
440
+
441
+
This is an issue with the copilot lsp itself as described in [this discussion](https://github.com/orgs/community/discussions/136273#discussioncomment-10433527). Please update copilot lsp to the latest version to solve this issue.
442
+
If updating didn't help, update the `/usr/bin/update-ca-trust` and remove the --comment option from the trust extract commands.
443
+
444
+
> Multiple offset encodings warning
445
+
446
+
As discussed in #247 ,The problem arises because two or more clients are using different offset encodings. To solve this, in lspconfig:
447
+
448
+
```lua
449
+
localcapabilities=vim.lsp.protocol.make_client_capabilities() -- Get The capabilities
450
+
capabilities.general.positionEncodings= { "utf-16" } -- Set the offset encoding, see `:h vim.lsp.start` for more info
451
+
require("lspconfig")[server].setup({ capabilities=capabilities }) -- Setup the server
452
+
```
453
+
Set the same for copilot in `server_opts_overrides`:
454
+
455
+
```lua
456
+
server_opts_overrides= {
457
+
offset_encoding="utf-16" -- Set the offset encoding same as above, see `:h vim.lsp.start` for more info
0 commit comments