mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-21 11:05:08 +02:00
42 lines
1.1 KiB
Lua
42 lines
1.1 KiB
Lua
|
local M = {}
|
||
|
|
||
|
function M.config()
|
||
|
lvim.builtin.mason = {
|
||
|
ui = {
|
||
|
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(require, "mason")
|
||
|
if not status_ok then
|
||
|
return
|
||
|
end
|
||
|
|
||
|
mason.setup(lvim.builtin.mason)
|
||
|
end
|
||
|
|
||
|
return M
|