fix: default root to cwd in python detection

This commit is contained in:
Rónán Carrigan
2022-06-26 10:48:41 +01:00
parent fe5fbe4e34
commit 4ded85dfbf

View File

@@ -25,6 +25,9 @@ local python_command_mem = {}
---@return string[] ---@return string[]
function M.get_python_command(root) function M.get_python_command(root)
if not root then
root = vim.loop.cwd()
end
if python_command_mem[root] then if python_command_mem[root] then
return python_command_mem[root] return python_command_mem[root]
end end