summaryrefslogtreecommitdiff
path: root/nixvim/filetypes/github-action.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-07-16 19:04:27 -0400
committerseth <[email protected]>2024-07-16 22:24:21 -0400
commit2e7e1ce219b43bb74f67875200dd4b68758ffd27 (patch)
tree11ca91f55aa47c5b341aaf65f3626c9681a22b07 /nixvim/filetypes/github-action.nix
parent255e7c40af44aeedf19a3ca682cfc8a098266e8a (diff)
back to nixvim againnixvim-again
Diffstat (limited to 'nixvim/filetypes/github-action.nix')
-rw-r--r--nixvim/filetypes/github-action.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/nixvim/filetypes/github-action.nix b/nixvim/filetypes/github-action.nix
new file mode 100644
index 0000000..c057de0
--- /dev/null
+++ b/nixvim/filetypes/github-action.nix
@@ -0,0 +1,8 @@
+{
+ # yes this is very silly
+ # but it makes sure actionlint won't lint *every* yaml file
+ filetype.pattern = {
+ ".*/.github/workflows/.*%.yml" = "yaml.githubaction";
+ ".*/.github/workflows/.*%.yaml" = "yaml.githubaction";
+ };
+}