diff options
Diffstat (limited to 'ftdetect')
| -rw-r--r-- | ftdetect/githubaction.lua | 5 | ||||
| -rw-r--r-- | ftdetect/just.lua | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/ftdetect/githubaction.lua b/ftdetect/githubaction.lua index a6e11cf..ca0e589 100644 --- a/ftdetect/githubaction.lua +++ b/ftdetect/githubaction.lua @@ -1,4 +1,9 @@ -- this allows `actionlint` to only yaml files that are actions +if vim.g.did_load_githubaction_plugin then + return +end + +vim.g.did_load_githubaction_plugin = true vim.filetype.add({ pattern = { [".*/.github/workflows/.*%.yml"] = "yaml.githubaction", diff --git a/ftdetect/just.lua b/ftdetect/just.lua index 4c7098a..e956caa 100644 --- a/ftdetect/just.lua +++ b/ftdetect/just.lua @@ -1,3 +1,8 @@ +if vim.g.did_load_just_plugin then + return +end + +vim.g.did_load_just_plugin = true vim.filetype.add({ filename = { ["justfile"] = "just", |
