aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim_lsp/scry.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim_lsp/scry.lua')
-rw-r--r--lua/nvim_lsp/scry.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/lua/nvim_lsp/scry.lua b/lua/nvim_lsp/scry.lua
new file mode 100644
index 00000000..6080f6c3
--- /dev/null
+++ b/lua/nvim_lsp/scry.lua
@@ -0,0 +1,24 @@
+local configs = require 'nvim_lsp/configs'
+local util = require 'nvim_lsp/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]]
+ }
+ }
+}