refactor(filetype): reorganize mappings
This commit is contained in:
@@ -6,19 +6,27 @@ vim.filetype.add({
|
|||||||
jinja2 = 'jinja',
|
jinja2 = 'jinja',
|
||||||
},
|
},
|
||||||
pattern = {
|
pattern = {
|
||||||
|
-- gitlab-ci
|
||||||
|
['%.gitlab%-ci%.ya?ml'] = 'yaml.gitlab',
|
||||||
|
['pipelines/.*%.ya?ml'] = 'yaml.gitlab',
|
||||||
|
-- values files
|
||||||
|
['.*/helm/.*values.*%.ya?ml'] = 'yaml.helm-values',
|
||||||
|
['values%.ya?ml'] = 'yaml.helm-values',
|
||||||
|
-- ansible
|
||||||
|
['.*/molecule/.*%.ya?ml'] = 'yaml.ansible',
|
||||||
['.*/roles/.*%.ya?ml'] = 'yaml.ansible',
|
['.*/roles/.*%.ya?ml'] = 'yaml.ansible',
|
||||||
['.*/tasks/.*%.ya?ml'] = 'yaml.ansible',
|
['.*/tasks/.*%.ya?ml'] = 'yaml.ansible',
|
||||||
['.*/plays/.*%.ya?ml'] = 'yaml.ansible',
|
['.*/plays/.*%.ya?ml'] = 'yaml.ansible',
|
||||||
|
['.*/plays/.*/files/.*%.ya?ml'] = { 'yaml', { priority = 10 } }, -- these are not ansible files
|
||||||
|
-- protobuf
|
||||||
|
['buf.yaml'] = 'buf-config',
|
||||||
|
['buf.gen.yaml'] = 'buf-config',
|
||||||
|
['buf.policy.yaml'] = 'buf-config',
|
||||||
|
['buf.lock'] = 'buf-config',
|
||||||
-- templates
|
-- templates
|
||||||
['.*/templates/.*%.ya?ml'] = 'helm',
|
['.*/templates/.*%.ya?ml'] = 'helm',
|
||||||
['.*/templates/.*%.tpl'] = 'helm',
|
['.*/templates/.*%.tpl'] = 'helm',
|
||||||
['helmfile%.ya?ml'] = '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',
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user