1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
return {
{ "neovim/nvim-lspconfig" },
{
"mason-org/mason.nvim",
opts = {},
},
{
"mason-org/mason-lspconfig.nvim",
dependencies = { "mason.nvim" },
config = function()
require("mason-lspconfig").setup({
ensure_installed = {
"basedpyright",
"lua_ls",
"rust_analyzer",
"tinymist",
},
handlers = {
function(lsp)
require("lspconfig")[lsp].setup({})
end,
["tinymist"] = function()
require("lspconfig")["tinymist"].setup({
settings = { formatterMode = "typstyle" },
})
end,
},
})
end,
},
}
|