aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/sorbet.lua
blob: bdf0a0243df537df2250243c91800a92896b2cf2 (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
24
25
26
27
28
29
30
local configs = require "lspconfig/configs"
local util = require "lspconfig/util"

local server_name = "sorbet"
local bin_name = "srb"

configs[server_name] = {
  default_config = {
    cmd = { bin_name, "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
```
    ]],
    default_config = {
      root_dir = [[root_pattern("Gemfile", ".git")]],
    },
  },
}