mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-03 17:45:52 +02:00
Add sorbet lsp for ruby (#1035)
This commit is contained in:
parent
4d46ee6e58
commit
029e08868a
1 changed files with 18 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue