This plugin allows you to quickly toggle number
and relativenumber
on or off using either :Trnu
or <Leader>tn
.
Add this code to ~/.config/nvim/lua/plugins/trnu.lua
and restart Neovim:
return {
'DarrellBrogdon/trnu.nvim',
lazy = false,
config = function()
require("trnu").setup()
end,
}