From 61f1967222365474c6cf7953c569cc94dbcc7acd Mon Sep 17 00:00:00 2001 From: Nam Nguyen Date: Tue, 11 Jun 2024 21:23:04 +1000 Subject: [PATCH] fix: throw error on vim.has call within the lsp/workspace.lua (#411) --- lua/oil/lsp/workspace.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/oil/lsp/workspace.lua b/lua/oil/lsp/workspace.lua index 85c8b5b..ac8e180 100644 --- a/lua/oil/lsp/workspace.lua +++ b/lua/oil/lsp/workspace.lua @@ -77,7 +77,7 @@ local function get_matching_paths(client, filters, paths) if vim.glob and vim.glob.to_lpeg then -- HACK around https://github.com/neovim/neovim/issues/28931 -- find alternations and sort them by length to try to match the longest first - if vim.has("nvim-0.11") == 0 then + if vim.fn.has("nvim-0.11") == 0 then glob = glob:gsub("{(.*)}", function(s) local pieces = vim.split(s, ",") table.sort(pieces, function(a, b)