https://github.com/mawkler/hml.nvim
Neovim plugin that adds H/M/L indicators to your line numbers
https://github.com/mawkler/hml.nvim
neovim neovim-plugin plugin
Last synced: 3 months ago
JSON representation
Neovim plugin that adds H/M/L indicators to your line numbers
- Host: GitHub
- URL: https://github.com/mawkler/hml.nvim
- Owner: mawkler
- License: mit
- Created: 2024-11-19T10:06:19.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-11-21T07:32:39.000Z (8 months ago)
- Last Synced: 2025-04-06T06:58:14.881Z (3 months ago)
- Topics: neovim, neovim-plugin, plugin
- Language: Lua
- Homepage:
- Size: 5.86 KB
- Stars: 22
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-neovim-sorted - mawkler/hml.nvim
- awesome-neovim-sorted - mawkler/hml.nvim
- awesome-neovim - mawkler/hml.nvim - Adds `H`/`M`/`L` indicators to your line numbers. (Bars and Lines / Colorscheme Switchers)
README
# HML.nvim
Adds `H`/`M`/`L` indicators to your line number column.

By default in Neovim, `H`/`M`/`L` jump to the **h**ighest, **m**iddle, and **l**owest line in the current visible window. If you have [`scrolloff`](https://neovim.io/doc/user/options.html#'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](https://github.com/folke/lazy.nvim/):
```lua
{
'mawkler/hml.nvim',
opts = {}
}
```## Configuration
To set line numbers relative to your cursor's line, see [`:help 'relativenumber'`](https://neovim.io/doc/user/options.html#'relativenumber').
### Default configuration
```lua
{
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
},
}
```