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

smear_to_cmd breaks z= (spell suggestions) and similar #82

Open
lithammer opened this issue Jan 10, 2025 · 1 comment
Open

smear_to_cmd breaks z= (spell suggestions) and similar #82

lithammer opened this issue Jan 10, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@lithammer
Copy link

With smear_to_cmd = true, it breaks spell suggestions (and other similar input lists vim.lsp.buf.code_action()).

Minimal init.lua:

vim.cmd([[packadd mini.nvim]])
require("mini.deps").setup()
local add, now = MiniDeps.add, MiniDeps.now

add("sphamba/smear-cursor.nvim")

now(function()
  local smear_cursor = require("smear_cursor")
  smear_cursor.setup({ smear_to_cmd = true })
end)

vim.o.spell = true

Got:

Screenshot 2025-01-10 at 11 40 40

Expected:

Screenshot 2025-01-10 at 11 41 47

Environment

  • OS: Debian testing
  • Terminal: Ghostty
  • Neovim version: v0.11.0-dev-1517+ga37784ad83
  • Smear-cursor version/commit: 005b50b
@lithammer lithammer added the bug Something isn't working label Jan 10, 2025
@sphamba
Copy link
Owner

sphamba commented Jan 12, 2025

Curiously, I don't get a broken behavior on neovim release v0.10.3, but it is broken on the nighty v0.11.0-dev-1533+g1a8a48d7e5.
I can reproduce the broken behavior by simply calling vim.cmd.redraw() when the suggestions are open, e.g. with

:lua vim.defer_fn(vim.cmd.redraw, 2000) 

The redraw is needed to update the smear animation, so I cannot do much on smear-cursor side.
I guess you could file an issue on neovim repo?

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