Skip to content

Commit

Permalink
Update lua/lspconfig/configs/gh_actions_ls.lua
Browse files Browse the repository at this point in the history
Co-authored-by: glepnir <[email protected]>
  • Loading branch information
chrisgrieser and glepnir authored Jan 13, 2025
1 parent e814848 commit dc3012f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lua/lspconfig/configs/gh_actions_ls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ return {
cmd = { 'gh-actions-language-server', '--stdio' },
filetypes = { 'yaml' },
root_dir = function(filename)
if not filename:find('/%.github/workflows/.+%.ya?ml') then
return
end
return util.root_pattern('.github')
return filename:find('/%.github/workflows/.+%.ya?ml') and util.root_pattern('.github') or nil
end,
single_file_support = false,
capabilities = {
Expand Down

0 comments on commit dc3012f

Please sign in to comment.