30 lines
1.0 KiB
Lua
30 lines
1.0 KiB
Lua
local status_ok, mason = pcall(require, "mason")
|
|
if not status_ok then
|
|
return
|
|
end
|
|
|
|
mason.setup {
|
|
ui = {
|
|
border = "shadow",
|
|
width = 0.6,
|
|
height = 0.9,
|
|
|
|
icons = {
|
|
package_installed = "+",
|
|
package_pending = "?",
|
|
package_uninstalled = "x"
|
|
}
|
|
},
|
|
keymaps = {
|
|
toggle_package_expand = "<CR>",
|
|
install_package = "i", -- Keymap to install the package under the current cursor position
|
|
update_package = "u", -- Keymap to reinstall/update the package under the current cursor position
|
|
check_package_version = "c", -- Keymap to check for new version for the package under the current cursor position
|
|
update_all_packages = "U", -- Keymap to update all installed packages
|
|
check_outdated_packages = "C", -- Keymap to check which installed packages are outdated
|
|
uninstall_package = "r", -- Keymap to uninstall a package
|
|
cancel_installation = "<C-c>", -- Keymap to cancel a package installation
|
|
apply_language_filter = "<C-f>", -- Keymap to apply language filter
|
|
},
|
|
}
|