Toggles between relative and absolute line numbers automatically
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
rc
.gitignore
CHANGELOG.md
LICENSE
README.md

README.md

kakoune-number-toggle

Toggles between relative and absolute line numbers automatically based on the current mode. Absolute line numbers are displayed in insert mode, and relative line numbers are displayed in all other modes.

Installation

Using plug.kak (recommended)

With plug.kak installed, add to your kakrc file:

plug 'evanrelf/kakoune-number-toggle'

Manually

Download plugin:

$ mkdir -p ~/.config/kak/plugins/
$ curl -L https://raw.githubusercontent.com/evanrelf/kakoune-number-toggle/master/rc/number-toggle.kak -o ~/.config/kak/plugins/number-toggle.kak

Add to your kakrc file:

source ~/.config/kak/plugins/number-toggle.kak

Options

  • number_toggle_params - Line number highlighter parameters (str-list, default empty)
# Example of enabling `-hlcursor` and `-separator ' '` parameters
set-option global number_toggle_params -hlcursor -separator ' '

Miscellaneous

Similar plugins for Vim: