2022-09-16 17:36:17 +08:00
|
|
|
require("mason").setup {ui = {icons = {package_installed = "✓"}}}
|
2023-03-09 15:47:32 +08:00
|
|
|
require("mason-lspconfig").setup {}
|
2022-09-16 17:36:17 +08:00
|
|
|
-- Dynamic loading of lsp servers
|
|
|
|
require("mason-lspconfig").setup_handlers {
|
|
|
|
-- The first entry (without a key) will be the default handler
|
|
|
|
-- and will be called for each installed server that doesn't have
|
|
|
|
-- a dedicated handler.
|
|
|
|
function(server_name) -- default handler (optional)
|
|
|
|
require("lspconfig")[server_name].setup {}
|
|
|
|
end,
|
|
|
|
-- Next, you can provide targeted overrides for specific servers.
|
|
|
|
-- For example, a handler override for the `rust_analyzer`:
|
|
|
|
["rust_analyzer"] = function() require("rust-tools").setup {} end
|
|
|
|
}
|
|
|
|
|