Closed Lukalukito closed 1 month ago
if this is a which-key problem i'll report there
There was no big updates in 'mini.surround', yet there was a big update in 'folke/which-key.nvim'. As everything still works without which-key, I think it is safe to assume the problem is not inside 'mini.surround'.
thanks. will report it there too
@Lukalukito DId you report it, I am having the same issue?
@echasnovski I deleted all my plugins and left only mini.surround
with default configuration.
Pressing just s in normal or visual mode is not indicating that another key is needed to continue it just delete the character or selected text and puts neovim in insert mode.
nvim --version
NVIM v0.10.0
Build type: Release
LuaJIT 2.1.1720049189
Run "nvim -V1 -v" for more info
:verbose map s
- click to expandPressing just s in normal or visual mode is not indicating that another key is needed to continue it just delete the character or selected text and puts neovim in insert mode.
Yes, nor it should indicate. Neovim waits for 'timeoutlen' milliseconds if it is not sure which mapping user wants to activate. After they pass, it executes the input as is.
What value of 'timeoutlen' do you have set? See it via :=vim.o.timeoutlen
.
Edit: If occasional s
bothers too much, consider following documented advice.
What value of 'timeoutlen' do you have set? See it via
:=vim.o.timeoutlen
.
1000
Edit: If occasional
s
bothers too much, consider following documented advice.
Thanks, I will try the suggestion!
What value of 'timeoutlen' do you have set? See it via
:=vim.o.timeoutlen
.1000
Then inputting any mapping sequence should not have delays more than one second between each adjacent keys. If you press s
and do nothing for more than a second, it will execute s
. If you press <Leader>
and do nothing for more than a second, it will execute the <Leader>
as is.
This is how Neovim works regarding mappings (without 'folke/which-key.nvim' or 'mini.clue').
I haven't reported it yet. I just set notimeout option so it will wait forever for next key( without displaying whichkey, other keymaps do display whichkey) but that's ok for now
Contributing guidelines
Module(s)
surround
Description
mini surround keymaps are not working after last update. before, s will show which-key and wait for next action (add, delete ...) but now it just uses nvims default s action( replacing current char going into insert mode). I am not sure if this has to do anything with which-key or my settings, but all i did is update every plugin with lazy.nvim. if this is a which-key problem i'll report there
Neovim version
0.10.0
Steps to reproduce
i have no idea what to put here
Expected behavior
mini.surround default keymap (s) opens which-key (like before, without any configuration needed)
Actual behavior
surround keymap doesn't get registered so nvim uses default action.