From 65bc19f8a031c5a603ab8efef12a4159c3ee2071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E9=85=94=E9=96=91=E5=90=9F?= <50296129+Jint-lzxy@users.noreply.github.com> Date: Mon, 24 Jul 2023 07:12:37 +0800 Subject: [PATCH] feat(lualine): add icon for PyEnv (#892) --- lua/modules/configs/ui/lualine.lua | 4 ++-- lua/modules/utils/icons.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/modules/configs/ui/lualine.lua b/lua/modules/configs/ui/lualine.lua index ea09ef778..04d28c755 100644 --- a/lua/modules/configs/ui/lualine.lua +++ b/lua/modules/configs/ui/lualine.lua @@ -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 "" diff --git a/lua/modules/utils/icons.lua b/lua/modules/utils/icons.lua index 91671d06c..b344530f3 100644 --- a/lua/modules/utils/icons.lua +++ b/lua/modules/utils/icons.lua @@ -150,7 +150,7 @@ local data = { Gavel = "", Glass = "󰂖", NoActiveLsp = "󱚧", - PyEnv = "󰌠", + PyEnv = "󰢩", Squirrel = "", Tag = "", Tree = "",