Skip to content

Commit

Permalink
refactor(gh_actions_ls): allow .forgejo and .gitea as root_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Crashdummyy committed Jan 17, 2025
1 parent 339ccc8 commit 60c4d5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/lspconfig/configs/gh_actions_ls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ 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')(filename) or nil
return filename:find('/%.(github|forgejo|gitea)/workflows/.+%.ya?ml') and util.root_pattern('.github', '.forgejo', '.gitea')(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.
single_file_support = false,
Expand Down

0 comments on commit 60c4d5e

Please sign in to comment.