From 156584e98a620b069220c9be5f3dc5c975e6f4d8 Mon Sep 17 00:00:00 2001 From: William Boman Date: Thu, 2 Mar 2023 02:11:07 +0100 Subject: feat: set $MASON and $MANPATH (#1041) --- lua/mason/init.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lua') diff --git a/lua/mason/init.lua b/lua/mason/init.lua index 36c269a7..f76756e0 100644 --- a/lua/mason/init.lua +++ b/lua/mason/init.lua @@ -18,6 +18,7 @@ function M.setup(config) if config then settings.set(config) end + vim.env.MASON = settings.current.install_root_dir if settings.current.PATH == "prepend" then vim.env.PATH = path.bin_prefix() .. platform.path_sep .. vim.env.PATH @@ -25,6 +26,10 @@ function M.setup(config) vim.env.PATH = vim.env.PATH .. platform.path_sep .. path.bin_prefix() end + if platform.is.unix then + vim.env.MANPATH = path.share_prefix "man" .. ":" .. (vim.env.MANPATH or "") + end + require "mason.api.command" setup_autocmds() require("mason-registry.sources").set_registries(settings.current.registries) -- cgit v1.2.3-70-g09d2