Migrate from lspconfig to vim.lsp.config
This commit is contained in:
@@ -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"] = {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user