fix(mini): lazy now supports mini plugins out of the box. no longer needed to have a custom config

This commit is contained in:
Folke Lemaitre 2023-05-13 16:16:05 +02:00
parent 9f2010a8b9
commit bd1ba54d13
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
3 changed files with 1 additions and 14 deletions

View file

@ -93,9 +93,7 @@ return {
{ {
"echasnovski/mini.pairs", "echasnovski/mini.pairs",
event = "VeryLazy", event = "VeryLazy",
config = function(_, opts) opts = {},
require("mini.pairs").setup(opts)
end,
}, },
-- surround -- surround
@ -130,10 +128,6 @@ return {
update_n_lines = "gzn", -- Update `n_lines` update_n_lines = "gzn", -- Update `n_lines`
}, },
}, },
config = function(_, opts)
-- use gz mappings instead of s to prevent conflict with leap
require("mini.surround").setup(opts)
end,
}, },
-- comments -- comments
@ -141,7 +135,6 @@ return {
"echasnovski/mini.comment", "echasnovski/mini.comment",
event = "VeryLazy", event = "VeryLazy",
opts = {}, opts = {},
main = "mini.comment",
}, },
-- better text-objects -- better text-objects

View file

@ -33,8 +33,5 @@ return {
}, },
} }
end, end,
config = function(_, opts)
require("mini.animate").setup(opts)
end,
}, },
} }

View file

@ -193,9 +193,6 @@ return {
end, end,
}) })
end, end,
config = function(_, opts)
require("mini.indentscope").setup(opts)
end,
}, },
-- noicer ui -- noicer ui