Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Don't load the Vim keymap temporarily (#3522)

Marshall Bowersb72c54fc311c
diff --git a/crates/settings2/src/settings_file.rs b/crates/settings2/src/settings_file.rs
index 590079c51b5..46450a9c282 100644
--- a/crates/settings2/src/settings_file.rs
+++ b/crates/settings2/src/settings_file.rs
@@ -124,6 +124,17 @@ pub fn update_settings_file<T: Settings>(
pub fn load_default_keymap(cx: &mut AppContext) {
for path in ["keymaps/default.json", "keymaps/vim.json"] {
+ // TODO: Remove this conditional when we're ready to add Vim support.
+ // Right now we're avoiding loading the Vim keymap to silence the warnings
+ // about invalid action bindings.
+ if path.contains("vim") {
+ let _: Option<()> = Err(format!(
+ "TODO: Skipping {path} until we're ready to add Vim support"
+ ))
+ .log_err();
+ continue;
+ }
+
KeymapFile::load_asset(path, cx).unwrap();
}