aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim_lsp/util.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim_lsp/util.lua')
-rw-r--r--lua/nvim_lsp/util.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim_lsp/util.lua b/lua/nvim_lsp/util.lua
index 83e36321..c125c33f 100644
--- a/lua/nvim_lsp/util.lua
+++ b/lua/nvim_lsp/util.lua
@@ -290,7 +290,7 @@ function M.root_pattern(...)
local patterns = vim.tbl_flatten {...}
local function matcher(path)
for _, pattern in ipairs(patterns) do
- if M.path.exists(M.path.join(path, pattern)) then
+ if M.path.exists(vim.fn.glob(M.path.join(path, pattern))) then
return path
end
end