aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/configs/sorbet.lua
blob: 58e248db6cf9ec868a537095d0e4d65089497594 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
local util = require 'lspconfig.util'

return {
  default_config = {
    cmd = { 'srb', 'tc', '--lsp' },
    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
```
    ]],
  },
}