Update init.lua

This commit is contained in:
DarthMooMancer
2025-03-14 09:41:16 -04:00
parent 8637709cfe
commit e4dc583348
+2 -2
View File
@@ -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.")