File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,12 @@ gh auth token
44
44
Set either the environment variable ` GITHUB_COPILOT_TOKEN ` or ` GH_COPILOT_TOKEN ` to that token.
45
45
Note that if you have the variable set, even empty, the LSP will attempt to use it to log in.
46
46
47
+ #### Authentication with Alternate GitHub Instances
48
+
49
+ If your access to Copilot is not provided by the public GitHub instance, you can set your
50
+ authentication provider to a custom URL with the corresponding config key e.g.
51
+ ` auth_provider_url = "https://mycorp.ghe.com/" ` .
52
+
47
53
## Setup and Configuration
48
54
49
55
You have to run the ` require("copilot").setup(options) ` function in order to start Copilot.
@@ -107,6 +113,7 @@ require('copilot').setup({
107
113
cvs = false ,
108
114
[" ." ] = false ,
109
115
},
116
+ auth_provider_url = nil , -- URL to authentication provider, if not "https://github.com/"
110
117
logger = {
111
118
file = vim .fn .stdpath (" log" ) .. " /copilot-lua.log" ,
112
119
file_log_level = vim .log .levels .OFF ,
You can’t perform that action at this time.
0 commit comments