fix diagnostic
Co-authored-by: Oleksiy Syvokon <oleksiy.syvokon@gmail.com>
This commit is contained in:
parent
1ecb2ff30b
commit
66fac38cf8
18 changed files with 60 additions and 56 deletions
|
@ -1492,11 +1492,8 @@ pub fn load_default_keymap(cx: &mut App) {
|
|||
if let Some(asset_path) = base_keymap.asset_path() {
|
||||
cx.bind_keys(KeymapFile::load_asset(asset_path, Some(KeybindSource::Base), cx).unwrap());
|
||||
}
|
||||
|
||||
if matches!(
|
||||
EditorModeSetting::get_global(cx).0,
|
||||
EditorMode::Vim | EditorMode::Helix | EditorMode::VimInsert
|
||||
) {
|
||||
let editor_mode = EditorModeSetting::get_global(cx).0;
|
||||
if editor_mode.is_modal() {
|
||||
cx.bind_keys(
|
||||
KeymapFile::load_asset(VIM_KEYMAP_PATH, Some(KeybindSource::Vim), cx).unwrap(),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue