1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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'", vim.log.levels.ERROR)
return
end
mason.setup({
ui = {
icons = {
package_installed = "✓",
package_pending = "➜",
package_uninstalled = "✗",
},
},
})
vim.keymap.set("n", "<leader>m", "<CMD>Mason<CR>", { desc = "Mason" })
vim.keymap.set("n", "<leader>M", "<CMD>MasonLog<CR>", { desc = "Mason Log" })
end
return M
|