diff options
| author | Nathan Smith <nathan@nathansmith.io> | 2020-09-14 17:28:35 -0700 |
|---|---|---|
| committer | Nathan Smith <nathan@nathansmith.io> | 2020-12-29 17:00:50 -0800 |
| commit | 384822b13bdb42f21293bf39045d9a7d99cc4cd8 (patch) | |
| tree | 7322f9a0c44b368d4c4f5467ff03323fcb654204 /lua | |
| parent | [docgen] Update README.md (diff) | |
| download | nvim-lspconfig-384822b13bdb42f21293bf39045d9a7d99cc4cd8.tar nvim-lspconfig-384822b13bdb42f21293bf39045d9a7d99cc4cd8.tar.gz nvim-lspconfig-384822b13bdb42f21293bf39045d9a7d99cc4cd8.tar.bz2 nvim-lspconfig-384822b13bdb42f21293bf39045d9a7d99cc4cd8.tar.lz nvim-lspconfig-384822b13bdb42f21293bf39045d9a7d99cc4cd8.tar.xz nvim-lspconfig-384822b13bdb42f21293bf39045d9a7d99cc4cd8.tar.zst nvim-lspconfig-384822b13bdb42f21293bf39045d9a7d99cc4cd8.zip | |
Add Sorbet language server
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/sorbet.lua | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lua/lspconfig/sorbet.lua b/lua/lspconfig/sorbet.lua new file mode 100644 index 00000000..1f96288e --- /dev/null +++ b/lua/lspconfig/sorbet.lua @@ -0,0 +1,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")]]; + }; + }; +}; |
