Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocompletion example setup differs from README recommendation #11

Open
curran opened this issue Dec 4, 2023 · 0 comments
Open

Autocompletion example setup differs from README recommendation #11

curran opened this issue Dec 4, 2023 · 0 comments

Comments

@curran
Copy link

curran commented Dec 4, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant