26 lines
774 B
Lua
26 lines
774 B
Lua
vim.filetype.add({
|
|
extension = {
|
|
['tf'] = 'terraform',
|
|
j2 = 'jinja',
|
|
jinja = 'jinja',
|
|
jinja2 = 'jinja',
|
|
},
|
|
pattern = {
|
|
['.*/playbooks/.*%.ya?ml'] = 'yaml.ansible',
|
|
['.*/roles/.*%.ya?ml'] = 'yaml.ansible',
|
|
['.*/tasks/.*%.ya?ml'] = 'yaml.ansible',
|
|
['.*/plays/.*%.ya?ml'] = 'yaml.ansible',
|
|
-- templates
|
|
['.*/templates/.*%.ya?ml'] = 'helm',
|
|
['.*/templates/.*%.tpl'] = 'helm',
|
|
['helmfile%.ya?ml'] = 'helm',
|
|
-- values files
|
|
['.*/helm/.*values.*%.ya?ml'] = 'yaml.helm-values',
|
|
['values%.ya?ml'] = 'yaml.helm-values',
|
|
-- gitlab-ci
|
|
['%.gitlab%-ci%.ya?ml'] = 'yaml.gitlab',
|
|
['pipelines/.*%.ya?ml'] = 'yaml.gitlab',
|
|
},
|
|
})
|
|
|