To enable relative line number, add the following line to your
vim.wo.relativenumber = trueCode language: Lua (lua)
Save this file by doing a
Shift + z repeat
The next time you open Neovim, you should see the relative line number enabled.
I compiled a list of software and services that I use to improve my workflow, here is the link to the list.
I’m using Lunarvim but it’s Neovim under the hood, and couldn’t figure out how to access this particular attribute. Thanks!
Leave a comment