fix(gh_actions_ls): correctly call util.root_pattern

I believe this is another case of 
This commit is contained in:
Mitchell Hanberg 2025-01-13 13:10:21 -05:00 committed by Peter Lithammer
parent 04e8eb54eb
commit 0913481440

View File

@ -9,7 +9,7 @@ return {
-- files. (A nil root_dir and no single_file_support results in the LSP not
-- attaching.) For details, see #3558
root_dir = function(filename)
return filename:find('/%.github/workflows/.+%.ya?ml') and util.root_pattern('.github') or nil
return filename:find('/%.github/workflows/.+%.ya?ml') and util.root_pattern('.github')(filename) or nil
end,
-- Disabling "single file support" is a hack to avoid enabling this LS for
-- every random yaml file, so `root_dir()` can control the enablement.