Darryl Dias

11 Mar 2023 in neovimtutorials

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.

https://darryldias.me/2023/hybrid-line-number-in-neovim-lua/
https://darryldias.me/2023/kickstart-neovim-on-linux/