aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-core/path.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/mason-core/path.lua')
-rw-r--r--lua/mason-core/path.lua11
1 files changed, 8 insertions, 3 deletions
diff --git a/lua/mason-core/path.lua b/lua/mason-core/path.lua
index 6a4c5663..b63b6c4a 100644
--- a/lua/mason-core/path.lua
+++ b/lua/mason-core/path.lua
@@ -38,9 +38,14 @@ function M.bin_prefix(executable)
return M.concat { M.install_prefix "bin", executable }
end
----@param share string?
-function M.share_prefix(share)
- return M.concat { M.install_prefix "share", share }
+---@param file string?
+function M.share_prefix(file)
+ return M.concat { M.install_prefix "share", file }
+end
+
+---@param file string?
+function M.opt_prefix(file)
+ return M.concat { M.install_prefix "opt", file }
end
---@param name string?