mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 08:35:48 +02:00
enc: lua format custem
This commit is contained in:
parent
65857a4226
commit
384c0b5768
68 changed files with 1450 additions and 1450 deletions
|
@ -8,7 +8,7 @@ if not vim.g.neovide and pcode.minianimate and true or false then
|
|||
opts = function()
|
||||
-- don't use animate when scrolling with the mouse
|
||||
local mouse_scrolled = false
|
||||
for _, scroll in ipairs { "Up", "Down" } do
|
||||
for _, scroll in ipairs({ "Up", "Down" }) do
|
||||
local key = "<ScrollWheel" .. scroll .. ">"
|
||||
vim.keymap.set({ "", "i" }, key, function()
|
||||
mouse_scrolled = true
|
||||
|
@ -16,14 +16,14 @@ if not vim.g.neovide and pcode.minianimate and true or false then
|
|||
end, { expr = true })
|
||||
end
|
||||
|
||||
local animate = require "mini.animate"
|
||||
local animate = require("mini.animate")
|
||||
return {
|
||||
resize = {
|
||||
timing = animate.gen_timing.linear { duration = 100, unit = "total" },
|
||||
timing = animate.gen_timing.linear({ duration = 100, unit = "total" }),
|
||||
},
|
||||
scroll = {
|
||||
timing = animate.gen_timing.linear { duration = 150, unit = "total" },
|
||||
subscroll = animate.gen_subscroll.equal {
|
||||
timing = animate.gen_timing.linear({ duration = 150, unit = "total" }),
|
||||
subscroll = animate.gen_subscroll.equal({
|
||||
predicate = function(total_scroll)
|
||||
if mouse_scrolled then
|
||||
mouse_scrolled = false
|
||||
|
@ -31,7 +31,7 @@ if not vim.g.neovide and pcode.minianimate and true or false then
|
|||
end
|
||||
return total_scroll > 1
|
||||
end,
|
||||
},
|
||||
}),
|
||||
},
|
||||
}
|
||||
end,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue