fix deprecated framework use
This commit is contained in:
parent
3cb53f9cf1
commit
bde2c26886
4
init.lua
4
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,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue