aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-01-18 01:47:25 -0800
committerGitHub <noreply@github.com>2021-01-18 01:47:25 -0800
commit646c07beee4e691d0a5760b5136cad2d7a87362c (patch)
tree8c9ded24c7020f4cbfed31ffd39f2e25392b79de /lua
parentUpdate bug_report.md (diff)
parentscry: Fix missing function call in root_dir (diff)
downloadnvim-lspconfig-646c07beee4e691d0a5760b5136cad2d7a87362c.tar
nvim-lspconfig-646c07beee4e691d0a5760b5136cad2d7a87362c.tar.gz
nvim-lspconfig-646c07beee4e691d0a5760b5136cad2d7a87362c.tar.bz2
nvim-lspconfig-646c07beee4e691d0a5760b5136cad2d7a87362c.tar.lz
nvim-lspconfig-646c07beee4e691d0a5760b5136cad2d7a87362c.tar.xz
nvim-lspconfig-646c07beee4e691d0a5760b5136cad2d7a87362c.tar.zst
nvim-lspconfig-646c07beee4e691d0a5760b5136cad2d7a87362c.zip
Merge pull request #677 from lithammer/fix-scry-root-pattern
scry: Fix missing function call in root_dir
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/scry.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/scry.lua b/lua/lspconfig/scry.lua
index d2b5164e..f15074cb 100644
--- a/lua/lspconfig/scry.lua
+++ b/lua/lspconfig/scry.lua
@@ -6,7 +6,7 @@ configs.scry = {
cmd = {'scry'},
filetypes = {'crystal'},
root_dir = function(fname)
- return util.root_pattern('shard.yml') or
+ return util.root_pattern('shard.yml')(fname) or
util.find_git_ancestor(fname) or
util.path.dirname(fname)
end