feat(nvim): add lualine component to show when running as root

This commit is contained in:
Price Hiller 2023-08-19 05:16:54 -05:00
parent ba12d910a1
commit 7443481fce
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -159,6 +159,19 @@ return {
"mode",
fmt = simplifiedMode,
},
{
color = {
fg = "#C34043",
gui = "bold,italic"
},
function()
local user = os.getenv("USER")
if user == "root" then
return user
end
return ""
end,
},
},
lualine_b = {
{