yuki-yano / delete-mark.nvim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

delete-mark.nvim

This plugin manipulates and highlights temporary comments that are scheduled for deletion.

Demo

Untitled.mp4

Usage

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,
}

About


Languages

Language:Lua 100.0%