diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/mason/settings.lua | 29 | ||||
| -rw-r--r-- | lua/mason/ui/components/header.lua | 14 | ||||
| -rw-r--r-- | lua/mason/ui/components/help/init.lua | 2 | ||||
| -rw-r--r-- | lua/mason/ui/instance.lua | 2 |
4 files changed, 40 insertions, 7 deletions
diff --git a/lua/mason/settings.lua b/lua/mason/settings.lua index 2409615e..56fbcfb9 100644 --- a/lua/mason/settings.lua +++ b/lua/mason/settings.lua @@ -4,9 +4,11 @@ local M = {} ---@class MasonSettings local DEFAULT_SETTINGS = { + ---@since 1.0.0 -- The directory in which to install packages. install_root_dir = path.concat { vim.fn.stdpath "data", "mason" }, + ---@since 1.0.0 -- 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) @@ -14,14 +16,17 @@ local DEFAULT_SETTINGS = { ---@type '"prepend"' | '"append"' | '"skip"' PATH = "prepend", + ---@since 1.0.0 -- 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, + ---@since 1.0.0 -- 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, + ---@since 1.0.0 -- [Advanced setting] -- The registries to source packages from. Accepts multiple entries. Should a package with the same name exist in -- multiple registries, the registry listed first will be used. @@ -29,6 +34,7 @@ local DEFAULT_SETTINGS = { "github:mason-org/mason-registry", }, + ---@since 1.0.0 -- The provider implementations to use for resolving supplementary package metadata (e.g., all available versions). -- Accepts multiple entries, where later entries will be used as fallback should prior providers fail. -- Builtin providers are: @@ -40,6 +46,7 @@ local DEFAULT_SETTINGS = { }, github = { + ---@since 1.0.0 -- 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") |
