diff options
| author | OKURA Masafumi <masafumi.o1988@gmail.com> | 2022-04-17 14:53:26 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-16 22:53:26 -0700 |
| commit | e9290e1265c2bb41484f8ad7ed93ccf70228c6d2 (patch) | |
| tree | 343f84f4afacdb54d478ffb9eee79068417ac9c6 /lua | |
| parent | docs: update outdated example in contributing (#1843) (diff) | |
| download | nvim-lspconfig-e9290e1265c2bb41484f8ad7ed93ccf70228c6d2.tar nvim-lspconfig-e9290e1265c2bb41484f8ad7ed93ccf70228c6d2.tar.gz nvim-lspconfig-e9290e1265c2bb41484f8ad7ed93ccf70228c6d2.tar.bz2 nvim-lspconfig-e9290e1265c2bb41484f8ad7ed93ccf70228c6d2.tar.lz nvim-lspconfig-e9290e1265c2bb41484f8ad7ed93ccf70228c6d2.tar.xz nvim-lspconfig-e9290e1265c2bb41484f8ad7ed93ccf70228c6d2.tar.zst nvim-lspconfig-e9290e1265c2bb41484f8ad7ed93ccf70228c6d2.zip | |
feat: add steep support (#1842)
Steep is a static type checker for Ruby.
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/steep.lua | 21 |
1 files changed, 21 insertions, 0 deletions
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")]], + }, + }, +} |
