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
Set this to `"getPanelCompletions"` to try out the new features. Most notably, completions in the cmp menu are no longer limited to 3 recommendations. There will be a way to limit this soon, but currently about 5 to 10 typically show. This will also enable a new command `:CopilotPanel`in which you can preview a ton of completion options as in copilot.vim. This feature is very new, and you can expect bugs as I am still ironing out some aspects of it, such as ranking completions by their provided scores, so expect even more functionality soon. Once this is made stable, it will very likely be the new default.
83
+
Set the enabled field to false if you do not wish to see copilot recommendations in nvim-cmp. Set the `method` field to `getCompletionsCycling` if you are having issues. getPanelCompletions seems to work just as quickly, and does not limit completions in the cmp menu to 3 recommendations. getPanelCompletions also allows for the comparator provided in copilot-cmp to not just place all copilot completions on top, but also sort them by the `score` copilot assigns them, which is not provided by getCompletionsCycling. Example:
80
84
81
-
Example:
85
+
```lua
86
+
require("copilot").setup {
87
+
cmp= {
88
+
enabled=true,
89
+
method="getCompletionsCycling",
90
+
}
91
+
},
92
+
```
93
+
94
+
##### panel
95
+
96
+
Enabling panel creates the `CopilotPanel` command, which allows you to preview completions in a split window. Navigating to the split window allows you to jump between them and see each one. (<CR> to accept completion not yet implemented, coming soon)
82
97
83
98
```lua
84
99
require("copilot").setup {
85
-
cmp_method="getPanelCompletions",
86
-
}
100
+
panel= {
101
+
enabled=false,
102
+
}
103
+
},
104
+
87
105
```
88
106
89
107
##### ft_disable
@@ -112,12 +130,20 @@ require("copilot").setup {
112
130
113
131
##### server_opts_overrides
114
132
115
-
Override copilot lsp client settings. See `:h vim.lsp.start_client` for list of options.
133
+
Override copilot lsp client settings. The `settings` field is where you can set the values of the options defined in SettingsOpts.md. These options are specific to the copilot lsp and can be used to customize its behavior. Ensure that the name field is not overriden as is is used for efficiency reasons in numerous checks to verify copilot is actually running. See `:h vim.lsp.start_client` for list of options.
0 commit comments