From 8637709cfe81318255528fbdfa27090afb863d64 Mon Sep 17 00:00:00 2001 From: DarthMooMancer <107283522+DarthMooMancer@users.noreply.github.com> Date: Fri, 14 Mar 2025 09:40:00 -0400 Subject: [PATCH] Update init.lua --- lua/Polydev/init.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lua/Polydev/init.lua b/lua/Polydev/init.lua index 74c8fe2..9ac1df5 100644 --- a/lua/Polydev/init.lua +++ b/lua/Polydev/init.lua @@ -7,7 +7,12 @@ M.lua = require("Polydev.lua") M.python = require("Polydev.python") function M.is_venv_active() - return vim.fn.getenv("VIRTUAL_ENV") ~= vim.NIL and vim.fn.getenv("VIRTUAL_ENV") ~= "" + local venv = vim.fn.getenv("VIRTUAL_ENV") + if venv and venv ~= "" then + print("Virtual environment active: " .. venv) + else + print("No virtual environment detected.") + end end function M.load_language_module(lang)