diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/typeprof.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lua/lspconfig/typeprof.lua b/lua/lspconfig/typeprof.lua new file mode 100644 index 00000000..cf948dd4 --- /dev/null +++ b/lua/lspconfig/typeprof.lua @@ -0,0 +1,22 @@ +local configs = require 'lspconfig/configs' +local util = require 'lspconfig/util' + +local server_name = 'typeprof' + +configs[server_name] = { + default_config = { + cmd = { 'typeprof', '--lsp', '--stdio' }, + filetypes = { 'ruby', 'eruby' }, + root_dir = util.root_pattern('Gemfile', '.git'), + }, + docs = { + description = [[ +https://github.com/ruby/typeprof + +`typeprof` is the built-in analysis and LSP tool for Ruby 3.1+. + ]], + default_config = { + root_dir = [[root_pattern("Gemfile", ".git")]], + }, + }, +} |
