mirror of
https://github.com/zoriya/flake.git
synced 2026-06-06 20:13:15 +00:00
Add cr & splitjoin
This commit is contained in:
@@ -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',
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user