fix(scroll): disable scroll by default for terminals

This commit is contained in:
Folke Lemaitre 2024-12-11 10:35:15 +01:00
parent d04cf1dc4f
commit 7b5a78a5c7
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -27,7 +27,7 @@ local defaults = {
},
-- what buffers to animate
filter = function(buf)
return vim.g.snacks_scroll ~= false and vim.b[buf].snacks_scroll ~= false
return vim.g.snacks_scroll ~= false and vim.b[buf].snacks_scroll ~= false and vim.bo[buf].buftype ~= "terminal"
end,
debug = false,
}