Skip to content

Commit

Permalink
feat(actionlint): run on condition
Browse files Browse the repository at this point in the history
  • Loading branch information
aceforeverd committed Dec 6, 2024
1 parent 5a80591 commit 53a7c4d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lua/aceforeverd/plugins/null-ls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ function M.setup()
-- end,
-- }),
null_ls.builtins.diagnostics.vint,
null_ls.builtins.diagnostics.actionlint,
null_ls.builtins.diagnostics.actionlint.with({
condition = function(_)
-- matches directory starts with '.github/workflows'
return string.match(vim.fn.expand('%:h'), ".github/workflows") ~= nil
end
})
}

null_ls.setup({
Expand Down

0 comments on commit 53a7c4d

Please sign in to comment.