aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/scry.lua
blob: d2b5164e5a42e4a648b0aeabc43e550bb441ab7e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
local configs = require 'lspconfig/configs'
local util = require 'lspconfig/util'

configs.scry = {
  default_config = {
    cmd = {'scry'},
    filetypes = {'crystal'},
    root_dir = function(fname)
      return util.root_pattern('shard.yml') or
        util.find_git_ancestor(fname) or
        util.path.dirname(fname)
    end
  },
  docs = {
      description = [[
https://github.com/crystal-lang-tools/scry

Crystal language server.
]],
      default_config = {
          root_dir = [[root_pattern('shard.yml', '.git') or dirname]]
      }
  }
}