diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/crystalline.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lua/lspconfig/crystalline.lua b/lua/lspconfig/crystalline.lua new file mode 100644 index 00000000..acd0d8fd --- /dev/null +++ b/lua/lspconfig/crystalline.lua @@ -0,0 +1,24 @@ +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]] + } + } +} |
