VSpaceCode / vscode-which-key

which-key like menu for Visual Studio Code
https://vspacecode.github.io/docs/whichkey
MIT License
164 stars 18 forks source link

Delay Issue with Menu Loading #93

Open pablosales-uniovi opened 1 month ago

pablosales-uniovi commented 1 month ago
          In addition to Marco's findings, the follow binding In your `vim.normalModeKeyBindingsNonRecursive` probably cause the slowness, because vim is looking for additional input "%"
        {
            "before": [
                "<space>",
                "%"
            ],
            "commands": [
                "editor.emmet.action.matchTag"
            ]
        }

Try removing those bindings. For this one I am listing specifically, you can remove it and use the overrides to add it to menu instead of using vim's binding. See https://vspacecode.github.io/docs/menu-customization#addreplace

Originally posted by @stevenguh in https://github.com/VSpaceCode/vscode-which-key/issues/20#issuecomment-712356664

Hi,

I'm using the VSCode-Neovim extension and experiencing a delay issue. Specifically, when I press certain keys after "<space>", the menu shows up immediately after typing the last key. For example, if I enter "<space>%", the menu appears instantly. However, if I just enter "<space>", it takes around 1 second to load.

I've tested additional bindings, and this issue occurs with many others, including "<space>.", "<space>enter", "<space>0", "<space>+", etc.

stevenguh commented 1 month ago

Prefacing that I do not use neovim, so I am not super useful.

If you don't even see the quick pick for key input, there's probably something in your neovim setting that's waiting for next input?

Also considering posting your settings? So others may able to take a look,