diff options
| author | William Boman <william@redwill.se> | 2022-05-21 17:41:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-21 17:41:42 +0200 |
| commit | 63f950401c666e18a82d93a7e6e1b0d7044f0432 (patch) | |
| tree | 8087f03d550d765a1a01618d899d7ffbd0a9cf0b /lua/nvim-lsp-installer/settings.lua | |
| parent | run autogen_metadata.lua (diff) | |
| download | mason-63f950401c666e18a82d93a7e6e1b0d7044f0432.tar mason-63f950401c666e18a82d93a7e6e1b0d7044f0432.tar.gz mason-63f950401c666e18a82d93a7e6e1b0d7044f0432.tar.bz2 mason-63f950401c666e18a82d93a7e6e1b0d7044f0432.tar.lz mason-63f950401c666e18a82d93a7e6e1b0d7044f0432.tar.xz mason-63f950401c666e18a82d93a7e6e1b0d7044f0432.tar.zst mason-63f950401c666e18a82d93a7e6e1b0d7044f0432.zip | |
feat(github): add setting to customize asset download url (#711)
Closes #678.
Diffstat (limited to 'lua/nvim-lsp-installer/settings.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/settings.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lua/nvim-lsp-installer/settings.lua b/lua/nvim-lsp-installer/settings.lua index e346763f..dd4a3d18 100644 --- a/lua/nvim-lsp-installer/settings.lua +++ b/lua/nvim-lsp-installer/settings.lua @@ -63,6 +63,15 @@ local DEFAULT_SETTINGS = { -- Limit for the maximum amount of servers to be installed at the same time. Once this limit is reached, any further -- servers 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", + }, } M._DEFAULT_SETTINGS = DEFAULT_SETTINGS |
