summaryrefslogtreecommitdiff
path: root/lua/lvim/core/lualine/components.lua
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2022-09-04 16:20:14 +0200
committerkylo252 <[email protected]>2022-09-04 16:20:14 +0200
commit50494d62a99b1d0767f330f66f2df0458d2c5da0 (patch)
treef76758ef247fcab5f9c8b7c565560792acaf445d /lua/lvim/core/lualine/components.lua
parentb3bceadfddce9843850cb375edb9d470ca75b61b (diff)
parent256e4b8e70994761957b84cb24151fcdfcaa74e6 (diff)
Merge remote-tracking branch 'origin/rolling'
Diffstat (limited to 'lua/lvim/core/lualine/components.lua')
-rw-r--r--lua/lvim/core/lualine/components.lua7
1 files changed, 1 insertions, 6 deletions
diff --git a/lua/lvim/core/lualine/components.lua b/lua/lvim/core/lualine/components.lua
index 5095cfb4..c88bf82b 100644
--- a/lua/lvim/core/lualine/components.lua
+++ b/lua/lvim/core/lualine/components.lua
@@ -47,15 +47,10 @@ return {
function()
local utils = require "lvim.core.lualine.utils"
if vim.bo.filetype == "python" then
- local venv = os.getenv "CONDA_DEFAULT_ENV"
+ local venv = os.getenv "CONDA_DEFAULT_ENV" or os.getenv "VIRTUAL_ENV"
if venv then
return string.format("  (%s)", utils.env_cleanup(venv))
end
- venv = os.getenv "VIRTUAL_ENV"
- if venv then
- return string.format("  (%s)", utils.env_cleanup(venv))
- end
- return ""
end
return ""
end,