From e9290e1265c2bb41484f8ad7ed93ccf70228c6d2 Mon Sep 17 00:00:00 2001 From: OKURA Masafumi Date: Sun, 17 Apr 2022 14:53:26 +0900 Subject: feat: add steep support (#1842) Steep is a static type checker for Ruby. --- lua/lspconfig/server_configurations/steep.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 lua/lspconfig/server_configurations/steep.lua (limited to 'lua') diff --git a/lua/lspconfig/server_configurations/steep.lua b/lua/lspconfig/server_configurations/steep.lua new file mode 100644 index 00000000..367c7800 --- /dev/null +++ b/lua/lspconfig/server_configurations/steep.lua @@ -0,0 +1,21 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'steep', 'langserver' }, + filetypes = { 'ruby', 'eruby' }, + root_dir = util.root_pattern('Steepfile', '.git'), + }, + docs = { + description = [[ +https://github.com/soutaro/steep + +`steep` is a static type checker for Ruby. + +You need `Steepfile` to make it work. Generate it with `steep init`. +]], + default_config = { + root_dir = [[root_pattern("Steepfile", ".git")]], + }, + }, +} -- cgit v1.2.3-70-g09d2