From 7443481fcef727558431279664bfe15f9ddae793 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 19 Aug 2023 05:16:54 -0500 Subject: [PATCH] feat(nvim): add lualine component to show when running as root --- dots/.config/nvim/lua/plugins/configs/lualine.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/dots/.config/nvim/lua/plugins/configs/lualine.lua b/dots/.config/nvim/lua/plugins/configs/lualine.lua index 7f8bfd7b..302f9dfe 100644 --- a/dots/.config/nvim/lua/plugins/configs/lualine.lua +++ b/dots/.config/nvim/lua/plugins/configs/lualine.lua @@ -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 = { {