Neovim plugin to automatically toggle between relative and absolute line numbers. Written in Lua.
Relative numbers are used in a buffer that has focus and is in normal mode since that's where you move around. They're turned off when you switch out of Vim, switch to another split, or go into insert and command modes.
- Neovim 0.7 or later
Use your favorite package manager. Example config with packer.nvim:
use { "sitiom/nvim-numbertoggle" }
https://github.com/jeffkreeftmeijer/vim-numbertoggle