Migrate from lspconfig to vim.lsp.config

This commit is contained in:
2025-10-19 13:30:43 -07:00
parent 6465ea5844
commit 822d694d1e

View File

@@ -36,23 +36,16 @@ end
local lsp_flags = { local lsp_flags = {
} }
require('lspconfig')['pyright'].setup{ vim.lsp.config('*', {
on_attach = on_attach, on_attach = on_attach,
flags = lsp_flags, flags = lsp_flags,
} })
require('lspconfig')['ts_ls'].setup{ vim.lsp.config('ts_ls', {
on_attach = on_attach, on_attach = on_attach,
flags = lsp_flags, flags = lsp_flags,
settings = {},
init_options = { init_options = {
maxTsServerMemory = "12288", maxTsServerMemory = "12288",
}, },
} })
require('lspconfig')['rust_analyzer'].setup{ vim.lsp.enable('pyright')
on_attach = on_attach, vim.lsp.enable('ts_ls')
flags = lsp_flags,
-- Server-specific settings...
settings = {
["rust-analyzer"] = {}
}
}