summaryrefslogtreecommitdiffstats
path: root/after/plugin/mason.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--after/plugin/mason.lua29
1 files changed, 29 insertions, 0 deletions
diff --git a/after/plugin/mason.lua b/after/plugin/mason.lua
new file mode 100644
index 0000000..ccd812e
--- /dev/null
+++ b/after/plugin/mason.lua
@@ -0,0 +1,29 @@
+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
+ },
+})