From a709b9d1ad15769b9cf1a64eca44557c8def85e3 Mon Sep 17 00:00:00 2001 From: Cory Hutchison Date: Sun, 21 Nov 2021 09:49:37 -0700 Subject: feat: add ruby typeprof support (#1459) --- lua/lspconfig/typeprof.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lua/lspconfig/typeprof.lua (limited to 'lua') 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")]], + }, + }, +} -- cgit v1.2.3-70-g09d2