mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
feat(toggle): added toggle for smooth scroll
This commit is contained in:
parent
04f15c1ba2
commit
aeec09c541
1 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue