aboutsummaryrefslogtreecommitdiff
path: root/editors/code/package.json
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code/package.json')
-rw-r--r--editors/code/package.json15
1 files changed, 10 insertions, 5 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index c0d8f0183..c9404a4dd 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -114,6 +114,11 @@
114 "command": "rust-analyzer.reload", 114 "command": "rust-analyzer.reload",
115 "title": "Restart server", 115 "title": "Restart server",
116 "category": "Rust Analyzer" 116 "category": "Rust Analyzer"
117 },
118 {
119 "command": "rust-analyzer.onEnter",
120 "title": "Enhanced enter key",
121 "category": "Rust Analyzer"
117 } 122 }
118 ], 123 ],
119 "keybindings": [ 124 "keybindings": [
@@ -136,6 +141,11 @@
136 "command": "rust-analyzer.run", 141 "command": "rust-analyzer.run",
137 "key": "ctrl+r", 142 "key": "ctrl+r",
138 "when": "editorTextFocus && editorLangId == rust" 143 "when": "editorTextFocus && editorLangId == rust"
144 },
145 {
146 "command": "rust-analyzer.onEnter",
147 "key": "enter",
148 "when": "editorTextFocus && !suggestWidgetVisible && editorLangId == rust"
139 } 149 }
140 ], 150 ],
141 "configuration": { 151 "configuration": {
@@ -157,11 +167,6 @@
157 "default": {}, 167 "default": {},
158 "description": "Fine grained feature flags to disable annoying features" 168 "description": "Fine grained feature flags to disable annoying features"
159 }, 169 },
160 "rust-analyzer.enableEnhancedTyping": {
161 "type": "boolean",
162 "default": true,
163 "description": "Enables enhanced typing. NOTE: If using a VIM extension, you should set this to false"
164 },
165 "rust-analyzer.raLspServerPath": { 170 "rust-analyzer.raLspServerPath": {
166 "type": [ 171 "type": [
167 "string" 172 "string"