-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
Disable autocompletion keymap #630
Comments
import { EditorState, EditorView, keymap } from "@codemirror/core";
import { autocompletion } from "@codemirror/autocomplete";
// Create an autocompletion plugin
const autocompletionPlugin = autocompletion();
// Create an empty keymap to disable autocompletion
const disableAutocompleteKeymap = keymap.of([]);
<CodeMirror
// ...
extensions={[autocompletionPlugin, disableAutocompleteKeymap]}
/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trying to just outright disable the autocompletion on enter keymap, however, I am unable to, tried the following:
But tab and enter still indent and autocomplete respectively with no change
The text was updated successfully, but these errors were encountered: