feat(nvim): add lualine component to show when running as root
This commit is contained in:
parent
ba12d910a1
commit
7443481fce
@ -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 = {
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user