Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mawkler/hml.nvim
Neovim plugin that adds H/M/L indicators to your line numbers
https://github.com/mawkler/hml.nvim
Last synced: about 2 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
- Created: 2024-11-19T10:06:19.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-19T22:43:56.000Z (2 months ago)
- Last Synced: 2024-11-19T23:30:17.220Z (2 months ago)
- Language: Lua
- Homepage:
- Size: 3.91 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- 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.
![hml.nvim screenshot](https://github.com/user-attachments/assets/7de33eaf-bda4-4876-a291-69f4f858394a)
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
},
}
```