nvim/lua/plugins/mason.lua

45 lines
745 B
Lua
Raw Normal View History

2022-12-31 17:43:31 +01:00
local M = {
'williamboman/mason.nvim',
2023-01-01 17:04:23 +01:00
cmd = 'Mason',
2022-12-31 17:43:31 +01:00
}
2023-01-03 16:13:42 +01:00
-- M.tools = {
-- 'clang-format',
-- 'clangd',
-- 'gopls',
2023-04-08 23:47:10 +02:00
-- 'lua-language-server',
2023-01-03 16:13:42 +01:00
-- 'rust-analyzer',
-- 'prettierd',
2023-04-08 23:47:10 +02:00
-- 'stylua',
2023-01-03 16:13:42 +01:00
-- }
2023-04-08 23:47:10 +02:00
--
2023-01-03 16:13:42 +01:00
-- function M.check()
-- local mr = require 'mason-registry'
-- for _, tool in ipairs(M.tools) do
-- local p = mr.get_package(tool)
-- if not p:is_installed() then
-- p:install()
-- end
-- end
-- end
2022-12-31 17:43:31 +01:00
function M.config()
require('mason').setup {
settings = {
ui = {
border = 'rounded',
icons = {
package_installed = '',
package_pending = '',
package_uninstalled = '',
},
},
log_level = vim.log.levels.INFO,
max_concurrent_installers = 4,
},
}
2023-01-01 17:04:23 +01:00
-- M.check()
2022-12-31 17:43:31 +01:00
end
return M