1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 09:40:06 +08:00
SpaceVim/bundle/nvim-lspconfig/lua/lspconfig/scry.lua
2021-10-05 15:13:10 +08:00

23 lines
539 B
Lua

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'(fname) 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]],
},
},
}