From 6c2fb86c6a03e20abea5ddd17d735885f0b7cb5e Mon Sep 17 00:00:00 2001 From: Michael Lingelbach Date: Wed, 24 Nov 2021 23:01:07 -0500 Subject: feat: expose configs --- lua/lspconfig/solargraph.lua | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 lua/lspconfig/solargraph.lua (limited to 'lua/lspconfig/solargraph.lua') diff --git a/lua/lspconfig/solargraph.lua b/lua/lspconfig/solargraph.lua deleted file mode 100644 index acaaa1ca..00000000 --- a/lua/lspconfig/solargraph.lua +++ /dev/null @@ -1,37 +0,0 @@ -local configs = require 'lspconfig/configs' -local util = require 'lspconfig/util' - -local bin_name = 'solargraph' -if vim.fn.has 'win32' == 1 then - bin_name = bin_name .. '.bat' -end -configs.solargraph = { - default_config = { - cmd = { bin_name, 'stdio' }, - settings = { - solargraph = { - diagnostics = true, - }, - }, - init_options = { formatting = true }, - filetypes = { 'ruby' }, - root_dir = util.root_pattern('Gemfile', '.git'), - }, - 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 --user-install solargraph -``` - ]], - default_config = { - root_dir = [[root_pattern("Gemfile", ".git")]], - }, - }, -} -- cgit v1.2.3-70-g09d2