aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/nvim/.config/nvim/lua/tobyvin/plugins/mason.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/.config/nvim/lua/tobyvin/plugins/mason.lua')
-rw-r--r--nvim/.config/nvim/lua/tobyvin/plugins/mason.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/nvim/.config/nvim/lua/tobyvin/plugins/mason.lua b/nvim/.config/nvim/lua/tobyvin/plugins/mason.lua
new file mode 100644
index 0000000..f622855
--- /dev/null
+++ b/nvim/.config/nvim/lua/tobyvin/plugins/mason.lua
@@ -0,0 +1,24 @@
+local M = {}
+
+M.setup = function()
+ local status_ok, mason = pcall(require, "mason")
+ if not status_ok then
+ vim.notify("Failed to load module 'mason'", "error")
+ return
+ end
+
+ mason.setup({
+ ui = {
+ icons = {
+ package_installed = "✓",
+ package_pending = "➜",
+ package_uninstalled = "✗",
+ },
+ },
+ })
+
+ vim.keymap.set("n", "<leader>i", ":Mason<CR>", { desc = "Mason" })
+ vim.keymap.set("n", "<leader>I", ":MasonLog<CR>", { desc = "Mason Log" })
+end
+
+return M