fix: default root to cwd in python detection
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user