Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 778 Bytes

File metadata and controls

39 lines (31 loc) · 778 Bytes

Headers.nvim

Installation

With lazy.nvim

{
    'mtsiakkas/headers.nvim',
    opts = { keymaps = true }
}

Usage

Options

`keymaps` - Set default keymaps
`center` - Center text in header
`fixed_width` - Fixed width headers
`trim` - Trim overlength text to fit `fixed_width`

User Commands

`CreateHeader` - Replaces the selected lines/current line with header
`NewHeader` - Creates new header from user input

Normal Mode

`<leader>gh` - Replaces the current line with header (`CreateHeader`)
`<leader>gH` - Creates new header from user input (`AddHeader`)

Visual Mode

`<leader>gh` - Replaces the selected lines with header (`CreateHeader`)