summaryrefslogtreecommitdiff
path: root/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/scry.lua
diff options
context:
space:
mode:
Diffstat (limited to 'start/lspconfig-0.1.8/lua/lspconfig/server_configurations/scry.lua')
-rw-r--r--start/lspconfig-0.1.8/lua/lspconfig/server_configurations/scry.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/scry.lua b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/scry.lua
new file mode 100644
index 0000000..8350a43
--- /dev/null
+++ b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/scry.lua
@@ -0,0 +1,22 @@
+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')]],
+ },
+ },
+}