Hybrid line number in Neovim (Lua)

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.

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