From 822d694d1e6bee2556f1e048dd422c012d6b6661 Mon Sep 17 00:00:00 2001 From: Aaron Gutierrez Date: Sun, 19 Oct 2025 13:30:43 -0700 Subject: [PATCH] Migrate from lspconfig to vim.lsp.config --- .config/nvim/lua/lsp.lua | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/.config/nvim/lua/lsp.lua b/.config/nvim/lua/lsp.lua index 5a31cb4..b9298f3 100644 --- a/.config/nvim/lua/lsp.lua +++ b/.config/nvim/lua/lsp.lua @@ -36,23 +36,16 @@ end local lsp_flags = { } -require('lspconfig')['pyright'].setup{ +vim.lsp.config('*', { on_attach = on_attach, flags = lsp_flags, -} -require('lspconfig')['ts_ls'].setup{ +}) +vim.lsp.config('ts_ls', { on_attach = on_attach, flags = lsp_flags, - settings = {}, init_options = { - maxTsServerMemory = "12288", + maxTsServerMemory = "12288", }, -} -require('lspconfig')['rust_analyzer'].setup{ - on_attach = on_attach, - flags = lsp_flags, - -- Server-specific settings... - settings = { - ["rust-analyzer"] = {} - } -} +}) +vim.lsp.enable('pyright') +vim.lsp.enable('ts_ls')