plugins.copilot-cmp.settings
Options provided to the require('copilot_cmp').setup
function.
Type: attribute set of anything
Default:
{ }
Example:
{
event = [
"InsertEnter"
"LspAttach"
];
fix_pairs = false;
}
Declared by:
plugins.copilot-cmp.settings.event
Configures when the source is registered.
Unless you have a unique problem for your particular configuration you probably don’t want to touch this.
Type: null or (list of (string or raw lua code))
Default:
null
Plugin default:
[
"InsertEnter"
"LspAttach"
]
Declared by:
plugins.copilot-cmp.settings.fix_pairs
Suppose you have the following code: print('h')
.
Copilot might try to account for the '
and )
and complete it with this: print('hello
.
This is not good behavior for consistency reasons and will just end up deleting the two ending characters. This option fixes that. Don’t turn this off unless you are having problems with pairs and believe this might be causing them.
Type: null or boolean or raw lua code
Default:
null
Plugin default: true
Declared by: