aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-10-06 01:05:50 +0200
committerGitHub <noreply@github.com>2022-10-06 01:05:50 +0200
commit839ccc8e63437b7444a1bbffda5b8c7cf3b76610 (patch)
tree24097cc2b671c69483d9d2189c51090351f3e1ff /doc
parentrefactor(cargo): utilize optional chaining (#513) (diff)
downloadmason-839ccc8e63437b7444a1bbffda5b8c7cf3b76610.tar
mason-839ccc8e63437b7444a1bbffda5b8c7cf3b76610.tar.gz
mason-839ccc8e63437b7444a1bbffda5b8c7cf3b76610.tar.bz2
mason-839ccc8e63437b7444a1bbffda5b8c7cf3b76610.tar.lz
mason-839ccc8e63437b7444a1bbffda5b8c7cf3b76610.tar.xz
mason-839ccc8e63437b7444a1bbffda5b8c7cf3b76610.tar.zst
mason-839ccc8e63437b7444a1bbffda5b8c7cf3b76610.zip
feat: add setting to control PATH modification (#514)
Closes #509.
Diffstat (limited to 'doc')
-rw-r--r--doc/mason.txt63
1 files changed, 35 insertions, 28 deletions
diff --git a/doc/mason.txt b/doc/mason.txt
index eaeac3cb..3d8b4674 100644
--- a/doc/mason.txt
+++ b/doc/mason.txt
@@ -168,6 +168,41 @@ Example:
*mason-default-settings*
local DEFAULT_SETTINGS = {
+ -- The directory in which to install packages.
+ 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"'
+ PATH = "prepend",
+
+ pip = {
+ -- These args will be added to `pip install` calls. Note that setting extra args might impact intended behavior
+ -- and is not recommended.
+ --
+ -- Example: { "--proxy", "https://proxyserver" }
+ install_args = {},
+ },
+
+ -- Controls to which degree logs are written to the log file. It's useful to set this to vim.log.levels.DEBUG when
+ -- debugging issues with package installations.
+ log_level = vim.log.levels.INFO,
+
+ -- Limit for the maximum amount of packages to be installed at the same time. Once this limit is reached, any further
+ -- packages that are requested to be installed will be put in a queue.
+ max_concurrent_installers = 4,
+
+ github = {
+ -- The template URL to use when downloading assets from GitHub.
+ -- The placeholders are the following (in order):
+ -- 1. The repository (e.g. "rust-lang/rust-analyzer")
+ -- 2. The release version (e.g. "v0.3.0")
+ -- 3. The asset name (e.g. "rust-analyzer-v0.3.0-x86_64-unknown-linux-gnu.tar.gz")
+ download_url_template = "https://github.com/%s/releases/download/%s/%s",
+ },
+
ui = {
-- Whether to automatically check for new versions when opening the :Mason window.
check_outdated_packages_on_open = true,
@@ -205,34 +240,6 @@ Example:
apply_language_filter = "<C-f>",
},
},
-
- -- The directory in which to install packages.
- install_root_dir = path.concat { vim.fn.stdpath "data", "mason" },
-
- pip = {
- -- These args will be added to `pip install` calls. Note that setting extra args might impact intended behavior
- -- and is not recommended.
- --
- -- Example: { "--proxy", "https://proxyserver" }
- install_args = {},
- },
-
- -- Controls to which degree logs are written to the log file. It's useful to set this to vim.log.levels.DEBUG when
- -- debugging issues with package installations.
- log_level = vim.log.levels.INFO,
-
- -- Limit for the maximum amount of packages to be installed at the same time. Once this limit is reached, any further
- -- packages that are requested to be installed will be put in a queue.
- max_concurrent_installers = 4,
-
- github = {
- -- The template URL to use when downloading assets from GitHub.
- -- The placeholders are the following (in order):
- -- 1. The repository (e.g. "rust-lang/rust-analyzer")
- -- 2. The release version (e.g. "v0.3.0")
- -- 3. The asset name (e.g. "rust-analyzer-v0.3.0-x86_64-unknown-linux-gnu.tar.gz")
- download_url_template = "https://github.com/%s/releases/download/%s/%s",
- },
}