mirror of
https://github.com/zoriya/flake.git
synced 2026-06-07 20:32:16 +00:00
Add cr & splitjoin
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"mini.nvim",
|
"mini.icons",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
load = function() end,
|
load = function() end,
|
||||||
after = function()
|
after = function()
|
||||||
@@ -8,4 +8,41 @@ return {
|
|||||||
MiniIcons.mock_nvim_web_devicons()
|
MiniIcons.mock_nvim_web_devicons()
|
||||||
end,
|
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',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user