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
|
-- by the server configuration above. Useful when disabling
|
||||||
-- certain features of an LSP (for example, turning off formatting for ts_ls)
|
-- certain features of an LSP (for example, turning off formatting for ts_ls)
|
||||||
server.capabilities = vim.tbl_deep_extend('force', {}, capabilities, server.capabilities or {})
|
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,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -43,17 +43,17 @@ end, { desc = 'Copy filename' })
|
||||||
|
|
||||||
require('guess-indent').setup {}
|
require('guess-indent').setup {}
|
||||||
|
|
||||||
local lspconfig = require 'lspconfig'
|
-- local lspconfig = require 'lspconfig'
|
||||||
lspconfig.ruby_lsp.setup {
|
-- lspconfig.ruby_lsp.setup {
|
||||||
init_options = {
|
-- init_options = {
|
||||||
formatter = 'standard',
|
-- formatter = 'standard',
|
||||||
linters = { 'standard' },
|
-- linters = { 'standard' },
|
||||||
addonSettings = {
|
-- addonSettings = {
|
||||||
['Ruby LSP Rails}'] = {
|
-- ['Ruby LSP Rails}'] = {
|
||||||
enablePendingMigrtationsPrompt = false,
|
-- enablePendingMigrtationsPrompt = false,
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
}
|
-- }
|
||||||
|
|
||||||
return {}
|
return {}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue