I'm adopting this extension, and am slightly confused because in the example, defaultKeymap is not set to false here:
https://github.com/replit/codemirror-vscode-keymap/blob/master/dev/basicSetupNoKeymap.ts#L21C2-L21C20
const basicSetup = [
...
// I expected to see autocompletion({ defaultKeymap: false }) here
autocompletion(),
...
];
However in the README it states:
This keymap includes shortcuts for all the official extension and replaces codemirror default keymaps:
- autocomplete (make sure to set
defaultKeymap: false when enabling this plugin)
So it's not clear what the best way is. I'll experiment and see if I notice differences in behavior with the two variations in how autocompletion is initialized.