- 调整配置文件组织方式,新增init.lua作为入口 - 更新lazy-lock.json同步插件版本 - 完善lua/目录下的插件和配置模块结构 - 修改README.md补充配置说明和使用指南
40 lines
781 B
Lua
40 lines
781 B
Lua
return {
|
|
"williamboman/mason.nvim",
|
|
dependencies = {
|
|
"williamboman/mason-lspconfig.nvim",
|
|
"WhoIsSethDaniel/mason-tool-installer.nvim",
|
|
},
|
|
config = function()
|
|
require("mason").setup({
|
|
ui = {
|
|
border = "rounded",
|
|
icons = {
|
|
package_installed = "✓",
|
|
package_pending = "➜",
|
|
package_uninstalled = "✗",
|
|
},
|
|
},
|
|
max_concurrent_installers = 10,
|
|
})
|
|
|
|
require("mason-tool-installer").setup({
|
|
ensure_installed = {
|
|
-- LSP 服务器
|
|
"lua-language-server",
|
|
"pyright",
|
|
"vim-language-server",
|
|
|
|
-- 格式化工具
|
|
"stylua",
|
|
"prettier",
|
|
"eslint_d",
|
|
"black",
|
|
"isort",
|
|
"shfmt",
|
|
},
|
|
auto_update = true, -- 自动更新已安装的工具
|
|
run_on_start = true, -- 启动时运行安装
|
|
})
|
|
end,
|
|
}
|