|
|
@ -223,6 +223,19 @@ return { |
|
|
|
dartls = { |
|
|
|
cmd = { "dart", "language-server", "--protocol=lsp" }, |
|
|
|
}, |
|
|
|
|
|
|
|
rust_analyzer = { |
|
|
|
settings = { |
|
|
|
["rust-analyzer"] = { |
|
|
|
cargo = { |
|
|
|
features = { |
|
|
|
"client", |
|
|
|
"server", |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
|
|
|
|
require("mason").setup() |
|
|
@ -245,15 +258,15 @@ return { |
|
|
|
}) |
|
|
|
|
|
|
|
require("mason-tool-installer").setup({ |
|
|
|
ensure_installed = ensure_installed, |
|
|
|
run_on_start = false, |
|
|
|
}) |
|
|
|
ensure_installed = ensure_installed, |
|
|
|
run_on_start = false, |
|
|
|
}) |
|
|
|
|
|
|
|
require("mason-lspconfig").setup() |
|
|
|
|
|
|
|
for server_name, server in pairs(servers) do |
|
|
|
server.capabilities = vim.tbl_deep_extend("force", {}, capabilities, server.capabilities or {}) |
|
|
|
require("lspconfig")[server_name].setup(server) |
|
|
|
end |
|
|
|
for server_name, server in pairs(servers) do |
|
|
|
server.capabilities = vim.tbl_deep_extend("force", {}, capabilities, server.capabilities or {}) |
|
|
|
require("lspconfig")[server_name].setup(server) |
|
|
|
end |
|
|
|
end, |
|
|
|
} |