Adds H
/M
/L
indicators to your line number column.
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.
With lazy.nvim:
{
'mawkler/hml.nvim',
opts = {}
}
To set line numbers relative to your cursor's line, see :help 'relativenumber'
.
{
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
},
}