Skip to content

Autocompletion example setup differs from README recommendation #11

@curran

Description

@curran

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions