Replies: 3 comments
-
更新升级 mason 教程 https://juejin.cn/post/7154005621887631396 |
Beta Was this translation helpful? Give feedback.
0 replies
-
mason 的话,这两天刚玩完,加上下面这段代码就能用了。servers 改成你需要的就可以了。 local status, mason = pcall(require, "mason")
if (not status) then return end
local status2, lspconfig = pcall(require, "mason-lspconfig")
if (not status2) then return end
mason.setup({})
local servers = { "bashls", "jsonls", "sumneko_lua", "gopls", "solidity", "yamlls" }
lspconfig.setup {
ensure_installed = servers,
}
local nvim_lsp = require "lspconfig"
lspconfig.setup_handlers {
function(server_name)
nvim_lsp[server_name].setup{}
end,
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
我也升级 mason 了 https://juejin.cn/post/7154005621887631396 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
插件lsp-installer的作者williamboman已经开发出了lsp-installer 的下一代插件mason.nvim 并不再维护原插件
Beta Was this translation helpful? Give feedback.
All reactions