diff options
| author | Cory Hutchison <cory_hutchison@icloud.com> | 2021-11-21 09:49:37 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-21 11:49:37 -0500 |
| commit | a709b9d1ad15769b9cf1a64eca44557c8def85e3 (patch) | |
| tree | ca82fed7629012ded65bff80eb664478d544e712 /lua | |
| parent | fix(health): fix problem of always showing warning (#1466) (diff) | |
| download | nvim-lspconfig-a709b9d1ad15769b9cf1a64eca44557c8def85e3.tar nvim-lspconfig-a709b9d1ad15769b9cf1a64eca44557c8def85e3.tar.gz nvim-lspconfig-a709b9d1ad15769b9cf1a64eca44557c8def85e3.tar.bz2 nvim-lspconfig-a709b9d1ad15769b9cf1a64eca44557c8def85e3.tar.lz nvim-lspconfig-a709b9d1ad15769b9cf1a64eca44557c8def85e3.tar.xz nvim-lspconfig-a709b9d1ad15769b9cf1a64eca44557c8def85e3.tar.zst nvim-lspconfig-a709b9d1ad15769b9cf1a64eca44557c8def85e3.zip | |
feat: add ruby typeprof support (#1459)
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")]], + }, + }, +} |
