2022-03-20 10:22:32 +08:00
|
|
|
local util = require 'lspconfig.util'
|
2021-10-05 15:13:10 +08:00
|
|
|
|
2022-03-20 10:22:32 +08:00
|
|
|
return {
|
2021-10-05 15:13:10 +08:00
|
|
|
default_config = {
|
2022-03-20 10:22:32 +08:00
|
|
|
cmd = { 'srb', 'tc', '--lsp' },
|
2021-10-05 15:13:10 +08:00
|
|
|
filetypes = { 'ruby' },
|
|
|
|
root_dir = util.root_pattern('Gemfile', '.git'),
|
|
|
|
},
|
|
|
|
docs = {
|
|
|
|
description = [[
|
|
|
|
https://sorbet.org
|
|
|
|
|
|
|
|
Sorbet is a fast, powerful type checker designed for Ruby.
|
|
|
|
|
|
|
|
You can install Sorbet via gem install. You might also be interested in how to set
|
|
|
|
Sorbet up for new projects: https://sorbet.org/docs/adopting.
|
|
|
|
|
|
|
|
```sh
|
|
|
|
gem install sorbet
|
|
|
|
```
|
|
|
|
]],
|
|
|
|
default_config = {
|
|
|
|
root_dir = [[root_pattern("Gemfile", ".git")]],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|