neovim: fix error when loading outside of distrobox container
This commit is contained in:
parent
5c3cbed705
commit
aba3dc1ed7
1 changed files with 6 additions and 3 deletions
|
@ -20,11 +20,14 @@ local function distro_traits(name)
|
|||
icon = "",
|
||||
color = "#73ba25",
|
||||
},
|
||||
[ "distrobox" ] = {
|
||||
}
|
||||
|
||||
if os.getenv("CONTAINER_ID") ~= nil then
|
||||
icons["distrobox"] = {
|
||||
icon = "[ " .. os.getenv("CONTAINER_ID") .. "]",
|
||||
color = "#917d62",
|
||||
},
|
||||
}
|
||||
}
|
||||
end
|
||||
|
||||
local icon = icons[name]
|
||||
if icon == nil then
|
||||
|
|
Loading…
Reference in a new issue