Add sorbet lsp for ruby (#1035)

This commit is contained in:
Will Leinweber 2021-07-20 08:25:32 -07:00 committed by GitHub
parent 4d46ee6e58
commit 029e08868a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,10 +41,11 @@ M.lint = function()
end
M.lsp = function()
if require("lv-utils").check_lsp_client_active "solargraph" then
return
if not require("lv-utils").check_lsp_client_active "sorbet" then
require("lspconfig").sorbet.setup {}
end
if not require("lv-utils").check_lsp_client_active "solargraph" then
-- If you are using rvm, make sure to change below configuration
require("lspconfig").solargraph.setup {
cmd = { DATA_PATH .. "/lspinstall/ruby/solargraph/solargraph", "stdio" },
@ -60,6 +61,7 @@ M.lsp = function()
filetypes = O.lang.ruby.filetypes,
}
end
end
M.dap = function()
-- gem install readapt ruby-debug-ide