How do I check whether neovim is in operator-pending mode? #1614
-
I have the following keybind in my {
"key": "space",
"command": "vspacecode.space",
"when": "editorTextFocus && neovim.mode == normal"
} I would like to expand the Thanks :) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Remove that vscode mapping and define the mapping in your nvim init.lua file instead.
|
Beta Was this translation helpful? Give feedback.
-
@justinmk is there a way to actually use operator-pending mode in the when condition? I have a different use case: when using Jupyter Notebooks and you start an action like |
Beta Was this translation helpful? Give feedback.
-
@justinmk Your solution works great ! But for me there is a delay of 1-2 seconds before the menu shows. Any ideas ? It might be because I am using wsl2 ? |
Beta Was this translation helpful? Give feedback.
Just put it in a
vim.cmd
call.