From e4dc583348b094ea4bbe64196bde5804689d46fd Mon Sep 17 00:00:00 2001 From: DarthMooMancer <107283522+DarthMooMancer@users.noreply.github.com> Date: Fri, 14 Mar 2025 09:41:16 -0400 Subject: [PATCH] Update init.lua --- lua/Polydev/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/Polydev/init.lua b/lua/Polydev/init.lua index 9ac1df5..baa3b0e 100644 --- a/lua/Polydev/init.lua +++ b/lua/Polydev/init.lua @@ -7,8 +7,8 @@ M.lua = require("Polydev.lua") M.python = require("Polydev.python") function M.is_venv_active() - local venv = vim.fn.getenv("VIRTUAL_ENV") - if venv and venv ~= "" then + local venv = tostring(vim.fn.getenv("VIRTUAL_ENV") or "") + if venv ~= "" then print("Virtual environment active: " .. venv) else print("No virtual environment detected.")