Programmatically get the path for installations #33
Answered
by
williamboman
oldgalileo
asked this question in
Q&A
-
How can you get the path to the install point for |
Beta Was this translation helpful? Give feedback.
Answered by
williamboman
Jul 8, 2022
Replies: 1 comment 5 replies
-
I haven't fully figured out the nicest way this could be done, so the following is subject to change in the future, but for now you can do this: local mason_registry = require("mason-registry")
local codelldb = mason_registry.get_package("codelldb") -- note that this will error if you provide a non-existent package name
codelldb:get_install_path() -- returns a string like "/home/user/.local/share/nvim/mason/packages/codelldb" |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
oldgalileo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I haven't fully figured out the nicest way this could be done, so the following is subject to change in the future, but for now you can do this: