Allow tab press to autocomplete (#1150)

pull/1131/merge
Vighnesh Shenoy 2024-11-14 01:45:40 +05:30 committed by GitHub
parent 6ba28e0a95
commit 3132d9e9f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import {
standardKeymap, standardKeymap,
} from "@codemirror/commands"; } from "@codemirror/commands";
import { import {
acceptCompletion,
autocompletion, autocompletion,
closeBrackets, closeBrackets,
closeBracketsKeymap, closeBracketsKeymap,
@ -381,6 +382,7 @@ export function createKeyBindings(client: Client): Extension {
] ]
: standardKeymap, : standardKeymap,
...completionKeymap, ...completionKeymap,
{ key: "Tab", run: acceptCompletion },
indentWithTab, indentWithTab,
]); ]);
} }