mirror of
https://github.com/neovim/nvim-lspconfig.git
synced 2026-05-11 03:26:10 +02:00
31 lines
829 B
Lua
31 lines
829 B
Lua
-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
-- This config is DEPRECATED.
|
|
-- Use the configs in `lsp/` instead (requires Nvim 0.11).
|
|
--
|
|
-- ALL configs in `lua/lspconfig/configs/` will be DELETED.
|
|
-- They exist only to support Nvim 0.10 or older.
|
|
-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
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
|
|
```
|
|
]],
|
|
},
|
|
}
|