-
Notifications
You must be signed in to change notification settings - Fork 11
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 goes to top-left corner when saving files #78
Comments
Hi, could you try on Neovim v0.10.2 (at least)? The get cursor position functions may have changed |
Hi, thank you for such a quick response. I updated neovim v0.10.3 but it doesn't change anything. Do tell me if you need me to try to do anything else. |
Oh one more thing I noticed is after bbb.mov |
Hmm, the same issue with nightly. I remember that neovide had the same issue before (and I don't know whether exists the latest version have) |
@tan-wei In which environment do you observe this behavior? I wonder if the issue is linked to iTerm2. I also noticed that in OP's video, the |
For me, I use neovim in MacOS and archlinux with nightly neovim (now: NVIM v0.11.0-dev-1466+g7ddadd0fee |
@craftgear @tan-wei Could you test revision 7e23d64 and see if it solves the issue? |
I've tries the branch "fix-jump-cmd", still the same. |
I tried setting pauses on |
I use |
So could |
Apparently, using a keybinding instead of opening the command line for writing the buffer (ie typing Looking at the vim.api.nvim_create_autocmd("BufWritePre", {
desc = "Do something on save",
pattern = "*",
callback = function(args)
vim.defer_fn(function() print("Before wait:", vim.fn.screenrow(), vim.fn.screencol()) end, 0)
vim.wait(0, function() end)
vim.defer_fn(function() print("After wait:", vim.fn.screenrow(), vim.fn.screencol()) end, 0)
end,
}) Running |
@
Got it. I think it is not a big deal that if it is not going to be fixed for me. Thanks for your great plugin. |
Good news. opts = {
-- ...
format_after_save = function(bufnr)
if vim.g.disable_autoformat or vim.b[bufnr].disable_autoformat then
return
end
return { timeout_ms = 1000, lsp_fallback = true, async = true }
-- ...
} And the issue does not occur. |
Let's keep this open for now. The synchronous behavior may still be adressed by fixing how cmd smears are handled |
Hi, I noticed flashing moves on saving files which you can see in the following clip.
smear-cursor.mov
I expected the newly added flag
disable smear to cmd line
might get rid of this behavior but no luck.Does anyone know how to prevent this?
Environment (optional)
The text was updated successfully, but these errors were encountered: