mawkler/hml.nvim

github github
bars-and-lines
stars 19
issues 0
subscribers 1
forks 0
CREATED

2024-11-19

UPDATED

2 months ago


HML.nvim

Adds H/M/L indicators to your line number column.

hml.nvim screenshot

By default in Neovim, H/M/L jump to the highest, middle, and lowest line in the current visible window. If you have scrolloff set, it can be dificult to tell exactly which lines they correspond to. This plugin helps you visualize this.

In the screenshot above I have set scrolloff to 3.

Setup

With lazy.nvim:

{
  'mawkler/hml.nvim',
  opts = {}
}

Configuration

To set line numbers relative to your cursor's line, see :help 'relativenumber'.

Default configuration

{
  signs = {
    H = 'H', -- Sign to use for the `H` line number
    M = 'M', -- Sign to use for the `M` line number
    L = 'L', -- Sign to use for the `L` line number
  },
}