mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-04 02:14:06 +03:00
Don't load the Vim keymap temporarily (#3522)
This PR removes the loading of the Vim keymap temporarily. This cuts down on the noise from all of the Vim-related action warnings. We can resume loading the Vim keymap once we're ready to add Vim support. Release Notes: - N/A
This commit is contained in:
parent
41fc30f62e
commit
b72c54fc31
@ -124,6 +124,17 @@ pub fn update_settings_file<T: Settings>(
|
|||||||
|
|
||||||
pub fn load_default_keymap(cx: &mut AppContext) {
|
pub fn load_default_keymap(cx: &mut AppContext) {
|
||||||
for path in ["keymaps/default.json", "keymaps/vim.json"] {
|
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();
|
KeymapFile::load_asset(path, cx).unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user