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, + }, }