Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
vim: Fix code actions menu
Conrad Irwina1343f0d2c44
diff --git a/assets/keymaps/vim.json b/assets/keymaps/vim.jsonindex 43b778d9b80..76b6653c813 100644--- a/assets/keymaps/vim.json+++ b/assets/keymaps/vim.json@@ -1,6 +1,6 @@[{- "context": "Editor && VimControl && !VimWaiting",+ "context": "Editor && VimControl && !VimWaiting && !menu","bindings": {"g": ["vim::PushOperator",diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rsindex c1e38614ef0..8adf98f1bc7 100644--- a/crates/editor/src/editor.rs+++ b/crates/editor/src/editor.rs@@ -7641,8 +7641,14 @@ impl View for Editor {keymap.add_identifier("renaming");}match self.context_menu.as_ref() {- Some(ContextMenu::Completions(_)) => keymap.add_identifier("showing_completions"),- Some(ContextMenu::CodeActions(_)) => keymap.add_identifier("showing_code_actions"),+ Some(ContextMenu::Completions(_)) => {+ keymap.add_identifier("menu");+ keymap.add_identifier("showing_completions")+ }+ Some(ContextMenu::CodeActions(_)) => {+ keymap.add_identifier("menu");+ keymap.add_identifier("showing_code_actions")+ }None => {}}for layer in self.keymap_context_layers.values() {