feat(toggle): added toggle for smooth scroll

This commit is contained in:
Folke Lemaitre 2024-12-08 20:08:01 +01:00
parent 04f15c1ba2
commit aeec09c541

View file

@ -295,4 +295,17 @@ function M.dim()
})
end
function M.scroll()
return M.new({
id = "scroll",
name = "Smooth Scroll",
get = function()
return vim.g.snacks_scroll ~= false
end,
set = function(state)
vim.g.snacks_scroll = state
end,
})
end
return M