mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-07-23 12:04:34 +02:00
update
This commit is contained in:
parent
2a752e0e93
commit
f88e445f01
5 changed files with 77 additions and 34 deletions
|
@ -1,7 +1,20 @@
|
|||
return {
|
||||
--- masukan plugin tambahan disini
|
||||
{ "folke/trouble.nvim", enabled = false }, -- ini untuk disable plugin
|
||||
-- { "dracula/vim" },
|
||||
{ "dracula/vim" },
|
||||
-- { "folke/tokyonight.nvim" },
|
||||
-- { "arcticicestudio/nord-vim" },
|
||||
-- { "sainnhe/sonokai" },
|
||||
-- { "RRethy/nvim-base16" },
|
||||
{
|
||||
"navarasu/onedark.nvim",
|
||||
priority = 1000,
|
||||
config = function()
|
||||
-- Lua
|
||||
require("onedark").setup({
|
||||
style = "darker",
|
||||
})
|
||||
require("onedark").load()
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
40
lua/custom/plugins/mini-animate.lua
Normal file
40
lua/custom/plugins/mini-animate.lua
Normal file
|
@ -0,0 +1,40 @@
|
|||
return {
|
||||
-- animations
|
||||
{
|
||||
"echasnovski/mini.animate",
|
||||
event = "VeryLazy",
|
||||
opts = function()
|
||||
-- don't use animate when scrolling with the mouse
|
||||
local mouse_scrolled = false
|
||||
for _, scroll in ipairs({ "Up", "Down" }) do
|
||||
local key = "<ScrollWheel" .. scroll .. ">"
|
||||
vim.keymap.set({ "", "i" }, key, function()
|
||||
mouse_scrolled = true
|
||||
return key
|
||||
end, { expr = true })
|
||||
end
|
||||
|
||||
local animate = require("mini.animate")
|
||||
return {
|
||||
resize = {
|
||||
timing = animate.gen_timing.linear({ duration = 100, unit = "total" }),
|
||||
},
|
||||
scroll = {
|
||||
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
|
||||
return false
|
||||
end
|
||||
return total_scroll > 1
|
||||
end,
|
||||
}),
|
||||
},
|
||||
}
|
||||
end,
|
||||
config = function(_, opts)
|
||||
require("mini.animate").setup(opts)
|
||||
end,
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue