Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sitiom/nvim-numbertoggle
Neovim plugin to automatically toggle between relative and absolute line numbers. Written in Lua.
https://github.com/sitiom/nvim-numbertoggle
line-numbers lua neovim neovim-plugin nvim
Last synced: about 1 month ago
JSON representation
Neovim plugin to automatically toggle between relative and absolute line numbers. Written in Lua.
- Host: GitHub
- URL: https://github.com/sitiom/nvim-numbertoggle
- Owner: sitiom
- License: mit
- Created: 2022-07-04T10:24:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-29T08:35:30.000Z (10 months ago)
- Last Synced: 2024-12-10T07:11:10.405Z (about 2 months ago)
- Topics: line-numbers, lua, neovim, neovim-plugin, nvim
- Language: Lua
- Homepage:
- Size: 35.2 KB
- Stars: 159
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-pinoy-made - GitHub
- awesome-neovim - sitiom/nvim-numbertoggle - Neovim plugin to automatically toggle between relative and absolute line numbers. (Utility / Cursorline)
- my-neovim-pluginlist - sitiom/nvim-numbertoggle - numbertoggle) ![](https://img.shields.io/github/last-commit/sitiom/nvim-numbertoggle) ![](https://img.shields.io/github/commit-activity/y/sitiom/nvim-numbertoggle) (Other Standard Feature Enhancement / Number)
README
# nvim-numbertoggle
Neovim plugin to automatically toggle between relative and absolute line numbers. Written in Lua.
![demo](https://user-images.githubusercontent.com/56180050/177167997-652a43b1-c94a-4b73-94d6-e4b85fbd4606.gif)
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.
## Getting started
### Requirements
- Neovim 0.7 or later
### Installation
Use your favorite package manager. Example config with [packer.nvim](https://github.com/wbthomason/packer.nvim):
```lua
use { "sitiom/nvim-numbertoggle" }
```## Acknowledgment
https://github.com/jeffkreeftmeijer/vim-numbertoggle