Skip to content

cschierig/linenumbers.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

linenumbers.nvim

Linenumbers.nvim is a simple plugin which automatically switches between relative/hybrid and absolute linenumbers based on the current editing mode.

Installation

To install the plugin, use your favourite plugin manager to clone the repo and proceed by following the instructions in the configuration section.

Dependencies

  • Neovim >= 0.8.0

Packer.nvim

use {
  'cschierig/linenumbers.nvim',
  event = 'BufEnter',
  config = function()
    require('twins').setup()
  end
}

Lazy.nvim

{
  'cschierig/linenumbers.nvim',
  event = 'BufEnter',
  config = true,
}

Configuration

The configuration is a table which is passed as the first argument to the setup() function. It has the following structure:

{
  -- if false, relative linenumbers should are used instead of hybrid ones
  hybrid = true
}

The default configuration can be found at the beginning of this file.

Similar plugins

About

A neovim plugin which automatically switches between absolute and relative linenumbers based on the current editing mode.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages