This plugin manipulates and highlights temporary comments that are scheduled for deletion.
Untitled.mp4
Call the setup function will default map to <C-e>
or execute DeleteMarkToggle
.
To delete comments, including inner code, execute DeleteMarkEject
.
require('delete-mark').setup({
-- opts
})
default opts:
{
mappings = {
normal = '<C-e>',
insert = '<C-e>',
visual = '<C-e>',
},
events = { 'TextChanged', 'BufRead', 'WinEnter', 'InsertLeave' },
highlight = {
mark = { link = 'Error' },
sign = { link = 'Error' },
between = { link = 'DiffDelete' },
},
sign = 'X',
tag = {
open = 'DELETE!: open',
close = 'DELETE!: close',
},
priority = 1000,
}