diff options
| author | Hirokazu Hata <h.hata.ai.t@gmail.com> | 2019-11-20 15:59:20 +0900 |
|---|---|---|
| committer | Ashkan Kiani <ashkan.k.kiani@gmail.com> | 2019-11-19 22:59:20 -0800 |
| commit | 001b567bfbca737a0b991e60465fcaaa3ba67542 (patch) | |
| tree | 3e78a6c6088872402dc2d250c2cf42b7a3af8ebf /lua/nvim_lsp/solargraph.lua | |
| parent | [docgen] Update README.md (diff) | |
| download | nvim-lspconfig-001b567bfbca737a0b991e60465fcaaa3ba67542.tar nvim-lspconfig-001b567bfbca737a0b991e60465fcaaa3ba67542.tar.gz nvim-lspconfig-001b567bfbca737a0b991e60465fcaaa3ba67542.tar.bz2 nvim-lspconfig-001b567bfbca737a0b991e60465fcaaa3ba67542.tar.lz nvim-lspconfig-001b567bfbca737a0b991e60465fcaaa3ba67542.tar.xz nvim-lspconfig-001b567bfbca737a0b991e60465fcaaa3ba67542.tar.zst nvim-lspconfig-001b567bfbca737a0b991e60465fcaaa3ba67542.zip | |
Add support solargraph (#37)
Diffstat (limited to 'lua/nvim_lsp/solargraph.lua')
| -rw-r--r-- | lua/nvim_lsp/solargraph.lua | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lua/nvim_lsp/solargraph.lua b/lua/nvim_lsp/solargraph.lua new file mode 100644 index 00000000..d42e847f --- /dev/null +++ b/lua/nvim_lsp/solargraph.lua @@ -0,0 +1,31 @@ +local skeleton = require 'nvim_lsp/skeleton' +local util = require 'nvim_lsp/util' +local lsp = vim.lsp + +skeleton.solargraph = { + default_config = { + cmd = {"solargraph", "stdio"}; + filetypes = {"ruby"}; + root_dir = util.root_pattern("Gemfile", ".git"); + log_level = lsp.protocol.MessageType.Warning; + settings = {}; + }; + docs = { + package_json = "https://raw.githubusercontent.com/castwide/vscode-solargraph/master/package.json"; + description = [[ +https://solargraph.org/ + +solargraph, a language server for Ruby + +You can install solargraph via gem install. + +```sh +gem install solargraph +``` + ]]; + default_config = { + root_dir = [[root_pattern("Gemfile", ".git")]]; + }; + }; +}; +-- vim:et ts=2 sw=2 |
