123456789101112131415161718192021222324252627282930313233343536373839404142 |
- local M = {}
- function M.config()
- lvim.builtin.mason = {
- ui = {
- border = "rounded",
- keymaps = {
- toggle_package_expand = "<CR>",
- install_package = "i",
- update_package = "u",
- check_package_version = "c",
- update_all_packages = "U",
- check_outdated_packages = "C",
- uninstall_package = "X",
- cancel_installation = "<C-c>",
- apply_language_filter = "<C-f>",
- },
- },
- log_level = vim.log.levels.INFO,
- 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",
- },
- }
- end
- function M.setup()
- local status_ok, mason = pcall(reload, "mason")
- if not status_ok then
- return
- end
- mason.setup(lvim.builtin.mason)
- end
- return M
|