mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-11 01:55:48 +08:00
23 lines
549 B
Lua
23 lines
549 B
Lua
|
local configs = require 'lspconfig/configs'
|
||
|
local util = require 'lspconfig/util'
|
||
|
|
||
|
configs.crystalline = {
|
||
|
default_config = {
|
||
|
cmd = { 'crystalline' },
|
||
|
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/elbywan/crystalline
|
||
|
|
||
|
Crystal language server.
|
||
|
]],
|
||
|
default_config = {
|
||
|
root_dir = [[root_pattern('shard.yml', '.git') or dirname]],
|
||
|
},
|
||
|
},
|
||
|
}
|