From bde2c26886f189ae5a8fc025dd46e9e2289dbe66 Mon Sep 17 00:00:00 2001 From: Brian Henderson Date: Tue, 23 Dec 2025 10:36:52 +0100 Subject: [PATCH] fix deprecated framework use --- init.lua | 4 +++- lua/custom/plugins/init.lua | 24 ++++++++++++------------ 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/init.lua b/init.lua index f25917a0..b2447db4 100644 --- a/init.lua +++ b/init.lua @@ -756,7 +756,9 @@ require('lazy').setup({ -- by the server configuration above. Useful when disabling -- certain features of an LSP (for example, turning off formatting for ts_ls) server.capabilities = vim.tbl_deep_extend('force', {}, capabilities, server.capabilities or {}) - require('lspconfig')[server_name].setup(server) + -- require('lspconfig')[server_name].setup(server) + vim.lsp.config(server_name, server) + vim.lsp.enable(server_name) end, }, } diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index d04f2891..721156b2 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -43,17 +43,17 @@ end, { desc = 'Copy filename' }) require('guess-indent').setup {} -local lspconfig = require 'lspconfig' -lspconfig.ruby_lsp.setup { - init_options = { - formatter = 'standard', - linters = { 'standard' }, - addonSettings = { - ['Ruby LSP Rails}'] = { - enablePendingMigrtationsPrompt = false, - }, - }, - }, -} +-- local lspconfig = require 'lspconfig' +-- lspconfig.ruby_lsp.setup { +-- init_options = { +-- formatter = 'standard', +-- linters = { 'standard' }, +-- addonSettings = { +-- ['Ruby LSP Rails}'] = { +-- enablePendingMigrtationsPrompt = false, +-- }, +-- }, +-- }, +-- } return {}