less of a rewrite, more of a restructure
This commit is contained in:
73
lua/plugins/utils/mini.lua
Normal file
73
lua/plugins/utils/mini.lua
Normal file
@@ -0,0 +1,73 @@
|
||||
return {
|
||||
"echasnovski/mini.nvim",
|
||||
version = "",
|
||||
|
||||
config = function()
|
||||
require("mini.pairs").setup() -- Bracket pairs and stuff
|
||||
|
||||
require("mini.ai").setup() -- Around and In extension for visual mode
|
||||
|
||||
require("mini.cursorword").setup() -- Underline current word below cursor (makes it easier to c and d)
|
||||
|
||||
require("mini.indentscope").setup({ -- shows indents
|
||||
symbol = "│",
|
||||
draw = {
|
||||
delay = 10,
|
||||
animation = require("mini.indentscope").gen_animation.linear({
|
||||
duration = 15,
|
||||
unit = "step",
|
||||
easing = "out",
|
||||
}),
|
||||
},
|
||||
})
|
||||
|
||||
require("mini.trailspace").setup() -- Shows useless spaces
|
||||
|
||||
require("mini.sessions").setup({ -- dir based session management
|
||||
autoread = true,
|
||||
autowrite = true,
|
||||
file = ".session",
|
||||
force = { read = false, write = true, delete = true },
|
||||
})
|
||||
|
||||
require("mini.surround").setup() -- Suround selections with characters
|
||||
|
||||
require("mini.move").setup({ -- move selection in visual mode
|
||||
mappings = {
|
||||
down = "J",
|
||||
up = "K",
|
||||
},
|
||||
})
|
||||
|
||||
require("mini.icons").setup() -- Icon provider
|
||||
|
||||
-- local animate = require("mini.animate") -- animations ovs
|
||||
-- require("mini.animate").setup({
|
||||
-- cursor = {
|
||||
-- enable = false,
|
||||
-- },
|
||||
-- scroll = {
|
||||
-- -- Animate for 200 milliseconds with linear easing
|
||||
-- timing = animate.gen_timing.linear({ duration = 100, unit = "total" }),
|
||||
-- -- Animate equally but with at most 120 steps instead of default 60
|
||||
-- subscroll = animate.gen_subscroll.equal({ max_output_steps = 60 }),
|
||||
-- },
|
||||
-- open = {
|
||||
-- -- Animate for 400 milliseconds with linear easing
|
||||
-- timing = animate.gen_timing.linear({ duration = 100, unit = "total" }),
|
||||
-- -- Animate with wiping from nearest edge instead of default static one
|
||||
-- winconfig = animate.gen_winconfig.wipe({ direction = "from_edge" }),
|
||||
-- -- Make bigger windows more transparent
|
||||
-- winblend = animate.gen_winblend.linear({ from = 0, to = 0 }),
|
||||
-- },
|
||||
-- close = {
|
||||
-- -- Animate for 400 milliseconds with linear easing
|
||||
-- timing = animate.gen_timing.linear({ duration = 100, unit = "total" }),
|
||||
-- -- Animate with wiping to nearest edge instead of default static one
|
||||
-- winconfig = animate.gen_winconfig.wipe({ direction = "to_edge" }),
|
||||
-- -- Make bigger windows more transparent
|
||||
-- winblend = animate.gen_winblend.linear({ from = 0, to = 0 }),
|
||||
-- },
|
||||
-- })
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user