From 71e64c59943ba857d8ad5de5e0b5f096af190fbc Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Mon, 17 Feb 2025 05:23:16 +0900 Subject: modified plugins/markdown.lua, modified lf/lfrc --- ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua') diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua index ffd06cd..a7c26b8 100644 --- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua +++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua @@ -441,10 +441,10 @@ return { vim.keymap.set("n", "ji", ":MoltenImagePopup", { silent = true, desc = "Pop-up image" }) vim.keymap.set("n", "jw", ":MoltenOpenInBrowser", { silent = true, desc = "Open in browser" }) vim.keymap.set("n", "jj", function() - local venv = os.getenv("WORKON_HOME") - if venv ~= nil then - venv = string.match(venv, "/.+/(.+)") - vim.cmd(("MoltenInit %s"):format(venv)) + local venv_path = os.getenv("VIRTUAL_ENV") + if venv_path then + local venv_name = vim.fn.fnamemodify(venv_path, ":t") + vim.cmd(("MoltenInit %s"):format(venv_name)) else vim.cmd("MoltenInit python3") end -- cgit v1.2.3