1
Fork 0

neovim: fix error when loading outside of distrobox container

This commit is contained in:
caem 2024-08-04 19:55:46 +02:00
parent 5c3cbed705
commit aba3dc1ed7
Signed by: caem
GPG key ID: 69A830D03203405F

View file

@ -20,11 +20,14 @@ local function distro_traits(name)
icon = "", icon = "",
color = "#73ba25", color = "#73ba25",
}, },
[ "distrobox" ] = { }
if os.getenv("CONTAINER_ID") ~= nil then
icons["distrobox"] = {
icon = "[󰏗 " .. os.getenv("CONTAINER_ID") .. "]", icon = "[󰏗 " .. os.getenv("CONTAINER_ID") .. "]",
color = "#917d62", color = "#917d62",
},
} }
end
local icon = icons[name] local icon = icons[name]
if icon == nil then if icon == nil then