-
Notifications
You must be signed in to change notification settings - Fork 10
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
Request: Add noice support #76
Comments
I just added a |
Hi, I just tried it and The animation still wont play within the CMD (Noice) but it does stop moving to the left bottom which mean the config is working. |
I won't be at my main computer for a few days. I'll check back in before this weekend |
Hi, |
The issue potentially comes from noice setting a custom cursor position. I could override the |
I guess it depends on who calls what first. Is the issue that Assuming Incorrect Values (And The Call Order Is Already Correct)We know from #9 (comment) that command mode in Neovim can have some weird redraw / rendering issues. Maybe it's a situation where a redraw is needed and then If not that then maybe it's a bug that needs to go to Neovim core. If Assuming Incorrect Call Order (And It Is Not Incorrect Values)Considering Something like (somewhere in local success, cmdline = pcall("noice.ui.cmdline")
if success then
local function _override(original)
-- Your preamble code, as needed
original()
-- Your post code, as needed
end
cmdline.fix_cursor = _override(cmdline.fix_cursor)
end |
Noice itself and notification plugins such as snacks-notify or nvim-notify handles notifications by overriding |
When one has smear-cursor.nvim + noice.nvim installed at the same time, the cursor animation should move to the pop-up UI window. But it still goes to the old lower-left command window. See the GIF for a visual representation.
2024-12-28.16-49-08.mp4
It'd be nice if smear-cursor.nvim could animate to wherever the command line start is, even that position is not at the (default) bottom of the screen.
I don't have a clear suggestion on how to implement it. But I did see this in the noice code:
https://github.com/folke/noice.nvim/blob/791eb70fd9257b76941c81a32e852fdfa1c4915b/lua/noice/ui/init.lua#L121-L130
There's also a (small amount of) help docs,
:h vim.ui_attach()
, that might helpThe text was updated successfully, but these errors were encountered: