mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
fix(scroll): don't animate when recording or executing macros
This commit is contained in:
parent
ee08b1f32e
commit
7dcdcb0b6a
1 changed files with 3 additions and 0 deletions
|
|
@ -49,6 +49,9 @@ local spammer_timer = assert((vim.uv or vim.loop).new_timer())
|
|||
-- get the state for a window.
|
||||
-- when the state doesn't exist, its target is the current view
|
||||
local function get_state(win)
|
||||
if vim.o.paste or vim.fn.reg_executing() ~= "" or vim.fn.reg_recording() ~= "" then
|
||||
return
|
||||
end
|
||||
if not vim.api.nvim_win_is_valid(win) then
|
||||
return
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue