Add cr & splitjoin

This commit is contained in:
2024-12-27 18:10:49 +01:00
parent f528088288
commit f942e31ea1
+38 -1
View File
@@ -1,6 +1,6 @@
return {
{
"mini.nvim",
"mini.icons",
lazy = false,
load = function() end,
after = function()
@@ -8,4 +8,41 @@ return {
MiniIcons.mock_nvim_web_devicons()
end,
},
{
"mini.operators",
lazy = false,
load = function() end,
opts = {
replace = {
prefix = "cr",
reindent_linewise = true,
},
},
keys = {
{ "gx" },
{ "cr", desc = "Replace with register" },
{ "<leader>cr", '"+cr', remap = true, desc = "Replace with system clipboard" },
},
after = function(plug)
require("mini.operators").setup(plug.opts)
end,
},
{
"mini.splitjoin",
lazy = false,
load = function() end,
keys = {
{ "gS", desc = "Split arguments" },
{ "gJ", desc = "Join arguments" },
},
opts = {
mappings = {
toggle = '',
split = 'gS',
join = 'gJ',
},
},
},
}