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
Copy file name to clipboardExpand all lines: README.md
+21-18Lines changed: 21 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,24 +14,25 @@ As lua is far more efficient and makes things easier to integrate with modern pl
14
14
## Table Of Contents
15
15
16
16
<!--toc:start-->
17
+
17
18
-[Requirements](#requirements)
18
19
-[Install](#install)
19
20
-[Authentication](#authentication)
20
-
-[Authentication with Alternate GitHub Instances](#authentication-with-alternate-github-instances)
21
+
-[Authentication with Alternate GitHub Instances](#authentication-with-alternate-github-instances)
21
22
-[Setup and Configuration](#setup-and-configuration)
22
-
-[panel](#panel)
23
-
-[suggestion](#suggestion)
24
-
-[filetypes](#filetypes)
25
-
-[logger](#logger)
26
-
-[copilot_node_command](#copilot_node_command)
27
-
-[server_opts_overrides](#server_opts_overrides)
28
-
-[workspace_folders](#workspace_folders)
29
-
-[root_dir](#root_dir)
30
-
-[should_attach](#should_attach)
31
-
-[server](#server)
32
-
-[Commands](#commands)
33
-
-[Integrations](#integrations)
34
-
-[FAQ](#faq)
23
+
-[panel](#panel)
24
+
-[suggestion](#suggestion)
25
+
-[filetypes](#filetypes)
26
+
-[logger](#logger)
27
+
-[copilot_node_command](#copilot_node_command)
28
+
-[server_opts_overrides](#server_opts_overrides)
29
+
-[workspace_folders](#workspace_folders)
30
+
-[root_dir](#root_dir)
31
+
-[should_attach](#should_attach)
32
+
-[server](#server)
33
+
-[Commands](#commands)
34
+
-[Integrations](#integrations)
35
+
-[FAQ](#faq)
35
36
<!--toc:end-->
36
37
37
38
## Requirements
@@ -403,8 +404,7 @@ require("copilot").setup {
403
404
404
405
### server
405
406
406
-
> [!CAUTION]
407
-
> `"binary"` mode is still very much experimental, please report any issues you encounter.
407
+
> [!CAUTION] > `"binary"` mode is still very much experimental, please report any issues you encounter.
408
408
409
409
`type` can be either `"nodejs"` or `"binary"`. The binary version will be downloaded if used.
410
410
@@ -438,8 +438,9 @@ The `copilot.api` module can be used to build integrations on top of `copilot.lu
438
438
439
439
> Certificate Parsing Error
440
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.
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 the plugin to the latest version to solve this issue.
442
+
If updating does not help, some users have reported that updating the `/usr/bin/update-ca-trust` and removing the --comment option from the trust extract commands.
443
+
However this has not been verified by the author of this plugin and may have unintended consequences so thread with care.
443
444
444
445
> Multiple offset encodings warning
445
446
@@ -450,11 +451,13 @@ local capabilities = vim.lsp.protocol.make_client_capabilities() -- Get The capa
450
451
capabilities.general.positionEncodings= { "utf-16" } -- Set the offset encoding, see `:h vim.lsp.start` for more info
451
452
require("lspconfig")[server].setup({ capabilities=capabilities }) -- Setup the server
452
453
```
454
+
453
455
Set the same for copilot in `server_opts_overrides`:
454
456
455
457
```lua
456
458
server_opts_overrides= {
457
459
offset_encoding="utf-16" -- Set the offset encoding same as above, see `:h vim.lsp.start` for more info
0 commit comments