Relative line number in Neovim (Lua)

To enable relative line number, add the following line to your init.lua.

vim.wo.relativenumber = true

Save this file by doing a :w or Shift + z repeat z.

The next time you open Neovim, you should see the relative line number enabled.

I'm Feeling Lucky
Darryl Dias

Written by Darryl Dias

The AI guy and founder of Caprycon, building AI-powered tools, exploring emerging technologies, and sharing insights from the world of artificial intelligence