From a422cfadc053506e2429383f5bdc38014e5a7514 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Wed, 28 Aug 2024 17:00:12 +0800 Subject: [PATCH] fix(home/base/tui/editors/neovim): use append for mason in PATH --- .../tui/editors/neovim/nvim/lua/plugins/mason.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/home/base/tui/editors/neovim/nvim/lua/plugins/mason.lua b/home/base/tui/editors/neovim/nvim/lua/plugins/mason.lua index ede1a484..b0eba6cf 100644 --- a/home/base/tui/editors/neovim/nvim/lua/plugins/mason.lua +++ b/home/base/tui/editors/neovim/nvim/lua/plugins/mason.lua @@ -63,4 +63,19 @@ return { -- }) -- end, }, + + { + "williamboman/mason.nvim", + opts = function(_, opts) + -- The directory in which to install packages. + opts.install_root_dir = path.concat { vim.fn.stdpath "data", "mason" } + + -- Where Mason should put its bin location in your PATH. Can be one of: + -- - "prepend" (default, Mason's bin location is put first in PATH) + -- - "append" (Mason's bin location is put at the end of PATH) + -- - "skip" (doesn't modify PATH) + ---@type '"prepend"' | '"append"' | '"skip"' + opts.PATH = "append" -- use mason's package only when no other package is found + end, + }, }