diff --git a/lua/oil/lsp/workspace.lua b/lua/oil/lsp/workspace.lua index 2e67f69a..91567feb 100644 --- a/lua/oil/lsp/workspace.lua +++ b/lua/oil/lsp/workspace.lua @@ -98,7 +98,7 @@ local function get_matching_paths(client, filters, paths) local workspace_folders = vim.tbl_map(function(folder) return vim.uri_to_fname(folder.uri) - end, client.workspace_folders) + end, client.workspace_folders or {}) local function get_matching_workspace(path) for _, workspace in ipairs(workspace_folders) do if fs.is_subpath(workspace, path) then