nvim/pack/acp/start/nvim-lspconfig/lua/lspconfig/server_configurations/scry.lua

23 lines
480 B
Lua
Raw Normal View History

2024-04-06 13:39:53 +00:00
local util = require 'lspconfig.util'
return {
default_config = {
cmd = { 'scry' },
filetypes = { 'crystal' },
root_dir = function(fname)
return util.root_pattern 'shard.yml'(fname) or util.find_git_ancestor(fname)
end,
single_file_support = true,
},
docs = {
description = [[
https://github.com/crystal-lang-tools/scry
Crystal language server.
]],
default_config = {
root_dir = [[root_pattern('shard.yml', '.git')]],
},
},
}