tb-dotfiles/chezmoi/private_dot_config/nvim/lua/plugins/mini-nvim.lua

38 lines
1 KiB
Lua
Raw Normal View History

return {
{
"echasnovski/mini.nvim",
config = function()
local animate = require("mini.animate")
animate.setup({
cursor = {
timing = animate.gen_timing.linear({ duration = 100, unit = "total" })
},
scroll = {
timing = animate.gen_timing.linear({ duration = 100, unit = "total" })
},
resize = {
timing = animate.gen_timing.linear({ duration = 100, unit = "total" })
},
open = {
timing = animate.gen_timing.linear({ duration = 100, unit = "total" })
},
close = {
timing = animate.gen_timing.linear({ duration = 100, unit = "total" })
},
})
require("mini.bufremove").setup()
require("mini.comment").setup()
require("mini.completion").setup()
require("mini.cursorword").setup()
require("mini.indentscope").setup({
symbol = ""
})
require("mini.surround").setup()
require("mini.trailspace").setup()
vim.api.nvim_command(":command Bd lua MiniBufremove.delete()")
vim.api.nvim_command(":command FixWhitespace lua MiniTrailspace.trim()")
end,
}
}