summaryrefslogtreecommitdiff
path: root/ftdetect/githubaction.lua
diff options
context:
space:
mode:
authorseth <[email protected]>2024-07-14 12:59:02 -0400
committerseth <[email protected]>2024-07-14 13:47:39 -0400
commit00d5ec09d45d09451b21ab58054e40f593577b15 (patch)
treeadea3dbc1e1d2e0ccd913128a03f2f3b3dbdb409 /ftdetect/githubaction.lua
parent8c76161eb8cf752c00a65cccccd381fb3bc5955d (diff)
efmls -> nvim-lint
also only use native lsps for formatting
Diffstat (limited to 'ftdetect/githubaction.lua')
-rw-r--r--ftdetect/githubaction.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/ftdetect/githubaction.lua b/ftdetect/githubaction.lua
new file mode 100644
index 0000000..a6e11cf
--- /dev/null
+++ b/ftdetect/githubaction.lua
@@ -0,0 +1,7 @@
+-- this allows `actionlint` to only yaml files that are actions
+vim.filetype.add({
+ pattern = {
+ [".*/.github/workflows/.*%.yml"] = "yaml.githubaction",
+ [".*/.github/workflows/.*%.yaml"] = "yaml.githubaction",
+ },
+})