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.
Using plug.kak (recommended)
With plug.kak installed, add to your kakrc
file:
plug "evanrelf/number-toggle.kak" config %{
require-module "number-toggle"
}
Download plugin:
$ curl -L https://raw.githubusercontent.com/evanrelf/number-toggle.kak/master/rc/number-toggle.kak -o ~/.config/kak/plugins/number-toggle.kak --create-dirs
Add to your kakrc
file:
source ~/.config/kak/plugins/number-toggle.kak
require-module "number-toggle"
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 ' '
Similar plugins for Vim: