|
@ -223,6 +223,19 @@ return { |
|
|
dartls = { |
|
|
dartls = { |
|
|
cmd = { "dart", "language-server", "--protocol=lsp" }, |
|
|
cmd = { "dart", "language-server", "--protocol=lsp" }, |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
rust_analyzer = { |
|
|
|
|
|
settings = { |
|
|
|
|
|
["rust-analyzer"] = { |
|
|
|
|
|
cargo = { |
|
|
|
|
|
features = { |
|
|
|
|
|
"client", |
|
|
|
|
|
"server", |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
require("mason").setup() |
|
|
require("mason").setup() |
|
@ -245,15 +258,15 @@ return { |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
require("mason-tool-installer").setup({ |
|
|
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() |
|
|
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, |
|
|
end, |
|
|
} |
|
|
} |