Skip to content

Toggles between relative and absolute line numbers automatically based on the current mode

License

Notifications You must be signed in to change notification settings

jtrv/number-toggle.kak

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

number-toggle.kak

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/number-toggle.kak" config %{
  require-module "number-toggle"
}

Manually

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"

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:

About

Toggles between relative and absolute line numbers automatically based on the current mode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • KakouneScript 100.0%