Skip to content
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: inserting an automatic <CR> after easymotion #840

Closed
3 tasks done
danielreis1 opened this issue Jun 5, 2024 · 1 comment
Closed
3 tasks done

bug: inserting an automatic <CR> after easymotion #840

danielreis1 opened this issue Jun 5, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@danielreis1
Copy link

danielreis1 commented Jun 5, 2024

Did you check docs and existing issues?

  • I have read all the noice.nvim docs
  • I have searched the existing issues of noice.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

0.10.0

Operating system/version

windows 10, using alacrity and wsl

Describe the bug

have the following simple mapping:
vim.keymap.set({"n", "o"}, 'tt', "<Plug>(easymotion-sn)")
I call it from normal mode
the problem is that an automatic (enter) is inserted right after I press enter on the easymotion, it's just on this easymotion, as far as I know, I have other easymotions where this isnt happening:
example:
vim.keymap.set({"n", "v", "o"}, "j", '0<Plug>(easymotion-j)') vim.keymap.set({"n", "v", "o"}, "k", '0<Plug>(easymotion-k)')
doesnt have this problem

the culprit in my noice.vim config is:
messages = { enabled = true, -- enables the Noice messages UI view = "virtualtext", view_error = "messages", -- view for errors view_warn = "messages", -- view for warnings view_history = "messages", -- view for :messages view_search = false, },
I have tried changing all view types, and most different combinations:
example:
view = "notify",
view_error = "notify",
the problem is still there

the only way to fix this is to set enable = false in that part of the config, it should be simple enough problem to reproduce

Steps To Reproduce

set the following in your noice.vim config, on top of the default config
messages = { enabled = true, -- enables the Noice messages UI view = "virtualtext", view_error = "messages", -- view for errors view_warn = "messages", -- view for warnings view_history = "messages", -- view for :messages view_search = false, },
2. install easymotion
3. set keymap for this easymotion: vim.keymap.set({"n", "o"}, 'tt', "<Plug>(easymotion-sn)")
4. test

Expected Behavior

an automatic (enter) appears, it's not supposed to appear,

Repro

No response

@danielreis1 danielreis1 added the bug Something isn't working label Jun 5, 2024
@folke
Copy link
Owner

folke commented Jun 5, 2024

I don't use easy-motion and other plugins like flash.nvim, leap etc don't have these issues.
Noice also doesn't add any enters anywhere.

@folke folke closed this as not planned Won't fix, can't repro, duplicate, stale Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants