-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Breaks vim.v.count in visual mode #824
Comments
I can confirm: I think it started happening since v3 This can also be seen visually:
|
I believe I'm facing the same issue, with
The added code:-- FIXME: if self.mode:find("[xo]") then return end Adding the same code in the same place on main (v3.13.3) still fixes the problem. I'm not sure what the ramifications of this are, though. |
Upon further digging, this commit e4d54d1 appears to be both the cause and the solution. Handling for Changing to an |
As a workaround, until require('which-key').setup({
...
triggers: {
{ "<auto>", mode = "nsot" },
},
}) |
@andrevmatos Thank you, this fixed it for me. (It should be |
This change breaks a typical work flow of writing the code, and send code to REPL. The scenario is, I have multiple REPLs opened, and I will send the visually selected content to different REPL using the Until this issue is fixed, other than disable which-key in visual mode (as I also want to use which-key in visual mode), an alternative way is to bind the command to a key sequence that will not trigger which key, like |
Did you check docs and existing issues?
Neovim version (nvim -v)
0.10.1
Operating system/version
macos 14
Describe the bug
vim.v.count
doesn't work in visual mode(seems to only happen when 2 or more lines are selected).Steps To Reproduce
Repro config attached.
Vj5<leader>M
:messages
count 0
Vj5<leader>M
:messages
count 5
Expected Behavior
vim.v.count
should be available to function handling visual mode mappingHealth
Log
Repro
The text was updated successfully, but these errors were encountered: