30 lines
643 B
Lua
30 lines
643 B
Lua
return {
|
||
{
|
||
-- lsp 下载器
|
||
"williamboman/mason-lspconfig.nvim",
|
||
dependencies = {
|
||
"williamboman/mason.nvim",
|
||
},
|
||
config = function()
|
||
require "mason".setup {
|
||
ui = {
|
||
icons = {
|
||
package_installed = "✓",
|
||
package_pending = "➜",
|
||
package_uninstalled = "✗"
|
||
}
|
||
}
|
||
}
|
||
require("mason-lspconfig").setup({
|
||
ensure_installed = {
|
||
"bashls",
|
||
-- "basedpyright", -- Python LSP 需手动装(有的机器不用 Python)
|
||
"lua_ls",
|
||
"jsonls",
|
||
"yamlls",
|
||
}
|
||
})
|
||
end
|
||
},
|
||
}
|