Skip to content

Conversation

@LuisA92
Copy link

@LuisA92 LuisA92 commented May 5, 2023

No description provided.

@AckslD
Copy link
Owner

AckslD commented May 5, 2023

Don't you also need to update set_env or is that the same as for venvs?

@LuisA92
Copy link
Author

LuisA92 commented May 5, 2023

Yes you're right. It uses the same set_env as for conda.

Comment on lines +63 to +72
local micromamba_env_path = Path:new(vim.fn.getenv('MAMBA_ROOT_PREFIX')) .. '/envs'
local micromamba_paths = scan_dir(micromamba_env_path, { depth = 1, only_dirs = true, silent = true })

for _, path in ipairs(micromamba_paths) do
table.insert(venvs, {
name = Path:new(path):make_relative(micromamba_env_path),
path = path,
source = 'micromamba',
})
end
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SInce this code is mostly shared now by the three cases maybe we can move this out to a separate function taking a path and source? Let me know if you want to do this or I can also do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants