fix deprecated framework use

This commit is contained in:
Brian Henderson 2025-12-23 10:36:52 +01:00
parent 3cb53f9cf1
commit bde2c26886
No known key found for this signature in database
2 changed files with 15 additions and 13 deletions

View File

@ -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,
},
}

View File

@ -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 {}