|
@@ -72,8 +72,8 @@ MiniOperators.setup({
|
|
-- disable evaluate mapping
|
|
-- disable evaluate mapping
|
|
evaluate = { prefix = '' },
|
|
evaluate = { prefix = '' },
|
|
|
|
|
|
- -- use cp motion to change and paste
|
|
|
|
- replace = { prefix = 'cp' },
|
|
|
|
|
|
+ -- custom mapping defined later
|
|
|
|
+ replace = { prefix = '' },
|
|
|
|
|
|
-- other mappings
|
|
-- other mappings
|
|
-- gm - multiply
|
|
-- gm - multiply
|
|
@@ -81,6 +81,13 @@ MiniOperators.setup({
|
|
-- gx - exchange
|
|
-- gx - exchange
|
|
})
|
|
})
|
|
|
|
|
|
|
|
+MiniOperators.make_mappings('replace', {
|
|
|
|
+ textobject = 'cp',
|
|
|
|
+ line = 'cpp',
|
|
|
|
+ -- overrides default p mapping
|
|
|
|
+ selection = 'p',
|
|
|
|
+})
|
|
|
|
+
|
|
local function toggle_end_char(char)
|
|
local function toggle_end_char(char)
|
|
local cursor = vim.api.nvim_win_get_cursor(0)
|
|
local cursor = vim.api.nvim_win_get_cursor(0)
|
|
local row = cursor[1] - 1
|
|
local row = cursor[1] - 1
|