Skip to content

Commit

Permalink
feat(lualine): add icon for PyEnv (#892)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jint-lzxy authored Jul 23, 2023
1 parent b44d015 commit 65bc19f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lua/modules/configs/ui/lualine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,11 @@ return function()
if vim.api.nvim_get_option_value("filetype", { scope = "local" }) == "python" then
local venv = os.getenv("CONDA_DEFAULT_ENV")
if venv then
return string.format("%s", env_cleanup(venv))
return icons.misc.PyEnv .. env_cleanup(venv)
end
venv = os.getenv("VIRTUAL_ENV")
if venv then
return string.format("%s", env_cleanup(venv))
return icons.misc.PyEnv .. env_cleanup(venv)
end
end
return ""
Expand Down
2 changes: 1 addition & 1 deletion lua/modules/utils/icons.lua
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ local data = {
Gavel = "",
Glass = "󰂖",
NoActiveLsp = "󱚧",
PyEnv = "󰌠",
PyEnv = "󰢩",
Squirrel = "",
Tag = "",
Tree = "",
Expand Down

0 comments on commit 65bc19f

Please sign in to comment.