diff options
| author | Peter Lithammer <peter.lithammer@gmail.com> | 2021-06-04 00:37:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-04 00:37:46 +0200 |
| commit | 62c04242031ed65a8d29ebefaaf645e8e3375748 (patch) | |
| tree | 8a6f9338becf669108c70c31d5331a53852769bb /lua | |
| parent | Merge pull request #949 from marioortizmanero/patch-2 (diff) | |
| parent | Add Crystalline (Crystal) (diff) | |
| download | nvim-lspconfig-62c04242031ed65a8d29ebefaaf645e8e3375748.tar nvim-lspconfig-62c04242031ed65a8d29ebefaaf645e8e3375748.tar.gz nvim-lspconfig-62c04242031ed65a8d29ebefaaf645e8e3375748.tar.bz2 nvim-lspconfig-62c04242031ed65a8d29ebefaaf645e8e3375748.tar.lz nvim-lspconfig-62c04242031ed65a8d29ebefaaf645e8e3375748.tar.xz nvim-lspconfig-62c04242031ed65a8d29ebefaaf645e8e3375748.tar.zst nvim-lspconfig-62c04242031ed65a8d29ebefaaf645e8e3375748.zip | |
Merge pull request #950 from gwerbin/master
Add Crystalline (Crystal)
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]] + } + } +} |
