Darryl Dias

10 Oct 2023 in neovimubuntulinux

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

vim.wo.number = true
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 hybrid line number enabled.

https://darryldias.me/2023/relative-line-number-in-neovim-lua/