We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
vscode-vim
on_enter
1 parent 7afa84e commit d5cf9f4Copy full SHA for d5cf9f4
crates/ide/src/typing/on_enter.rs
@@ -36,6 +36,16 @@ use text_edit::TextEdit;
36
// }
37
// ----
38
//
39
+// When using the Vim plugin:
40
+// [source,json]
41
+// ----
42
+// {
43
+// "key": "Enter",
44
+// "command": "rust-analyzer.onEnter",
45
+// "when": "editorTextFocus && !suggestWidgetVisible && editorLangId == rust && vim.mode == 'Insert'"
46
+// }
47
48
+//
49
// image::https://user-images.githubusercontent.com/48062697/113065578-04c21800-91b1-11eb-82b8-22b8c481e645.gif[]
50
pub(crate) fn on_enter(db: &RootDatabase, position: FilePosition) -> Option<TextEdit> {
51
let parse = db.parse(position.file_id);
0 commit comments